Skip to content

Commit

Permalink
Add namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Mar 24, 2024
1 parent 534e901 commit d9a5803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ResourceService.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace php ResourceService
namespace go ResourceService
namespace py ResourceService

struct ResourceRequest {
1: string method,
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"scripts": {
"build:all": ["@build:thrift", "@build:go", "@build:py", "@build:php", "@build:bear"],
"build:thrift": [
"rm -rf client/py_client/gen_go/",
"rm -rf client/py_client/gen_py/",
"rm -rf client/go_client/gen*",
"rm -rf client/py_client/gen*",
"thrift -r --gen php:server ResourceService.thrift",
"thrift -r --gen go -o client/go_client ResourceService.thrift && mv client/go_client/gen-go client/go_client/gen_go",
"thrift -r --gen py -o client/py_client ResourceService.thrift && mv client/py_client/gen-py client/py_client/gen_py"
Expand Down

0 comments on commit d9a5803

Please sign in to comment.