Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fuwensun committed Jul 17, 2020
1 parent 5818e4f commit b344a85
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions eApi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ grpcurl -plaintext localhost:50051 list
# 使用 grpc 方法 service.goms.v1.User/Ping, 参数 {"message":"xxx"}
grpcurl -plaintext -d '{"message":"xxx"}' localhost:50051 service.goms.v1.User/Ping
# 使用 grpc 方法 service.goms.v1.User/CreateUser, 参数 {"name":"xxx","sex":"0"}
grpcurl -plaintext -d '{"name":"xxx","sex":"0"}' localhost:50051 service.goms.v1.User/CreateUser
# 使用 grpc 方法 service.goms.v1.User/CreateUser, 参数 {"name":"xxx","sex":"1"}
grpcurl -plaintext -d '{"name":"xxx","sex":"1"}' localhost:50051 service.goms.v1.User/CreateUser
# 使用 grpc 方法 service.goms.v1.User/ReadUser, 参数 {"uid":"123"}
grpcurl -plaintext -d '{"uid":"123"}' localhost:50051 service.goms.v1.User/ReadUser
Expand Down
4 changes: 2 additions & 2 deletions eRedis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ grpcurl -plaintext localhost:50051 list
# 使用 grpc 方法 service.goms.User/Ping, 参数 {"message":"xxx"}
grpcurl -plaintext -d '{"message":"xxx"}' localhost:50051 service.goms.User/Ping
# 使用 grpc 方法 service.goms.User/CreateUser, 参数 {"name":"xxx","sex":"0"}
grpcurl -plaintext -d '{"name":"xxx","sex":"0"}' localhost:50051 service.goms.User/CreateUser
# 使用 grpc 方法 service.goms.User/CreateUser, 参数 {"name":"xxx","sex":"1"}
grpcurl -plaintext -d '{"name":"xxx","sex":"1"}' localhost:50051 service.goms.User/CreateUser
# 使用 grpc 方法 service.goms.User/ReadUser, 参数 {"uid":"123"}
grpcurl -plaintext -d '{"uid":"123"}' localhost:50051 service.goms.User/ReadUser
Expand Down
4 changes: 2 additions & 2 deletions eTest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ grpcurl -plaintext localhost:50051 list
# 使用 grpc 方法 service.goms.User/Ping, 参数 {"message":"xxx"}
grpcurl -plaintext -d '{"message":"xxx"}' localhost:50051 service.goms.User/Ping
# 使用 grpc 方法 service.goms.User/CreateUser, 参数 {"name":"xxx","sex":"0"}
grpcurl -plaintext -d '{"name":"xxx","sex":"0"}' localhost:50051 service.goms.User/CreateUser
# 使用 grpc 方法 service.goms.User/CreateUser, 参数 {"name":"xxx","sex":"1"}
grpcurl -plaintext -d '{"name":"xxx","sex":"1"}' localhost:50051 service.goms.User/CreateUser
# 使用 grpc 方法 service.goms.User/ReadUser, 参数 {"uid":"123"}
grpcurl -plaintext -d '{"uid":"123"}' localhost:50051 service.goms.User/ReadUser
Expand Down
2 changes: 1 addition & 1 deletion tests/bash/test_grpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ grpcurl -plaintext -d '{"message":"xxx"}' $ADDR $SERVICE.User/Ping

# user
# CreateUser
res=$(grpcurl -plaintext -d '{"name":"xxx","sex":"0"}' $ADDR $SERVICE.User/CreateUser)
res=$(grpcurl -plaintext -d '{"name":"xxx","sex":"1"}' $ADDR $SERVICE.User/CreateUser)
res=$(echo $res | awk 'NR==1{ print $3 }' | tr -d "\"")
uid=$res;
name=name${uid:1:6};echo $name
Expand Down

0 comments on commit b344a85

Please sign in to comment.