Skip to content

Commit

Permalink
更新grpc文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jan 10, 2020
1 parent 446a5b6 commit 2f35a4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/components/rpc/grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ class AuthServiceController extends HttpController implements AuthServiceInterfa
],
'resource' => [
// 这里需要和你的服务端路由一致
'url' => 'http://127.0.0.1:8080/{package}.{service}/{name}',
'url' => 'http://127.0.0.1:8080/{package}.{service}/{name}',
// 'url' => 'http://127.0.0.1:8080/{package}.{service}/{name|ucfirst}', // 参数支持设定函数处理,比如这个将方法名首字母大写,兼容其它部分语言
'clientClass' => \Imi\Grpc\Client\GrpcClient::class,
'method' => 'POST', // 指定请求方式,默认 GET
]
],
],
Expand Down

0 comments on commit 2f35a4a

Please sign in to comment.