hertz101/Makefile
suyiiyii 85d297aeaa
build(user): 移除 godotenv 依赖
- 从 user 服务的 go.mod 文件中删除了 github.com/joho/godotenv
- 相应地从 go.sum 文件中移除了 godotenv 的特定版本信息
2025-01-21 23:27:39 +08:00

22 lines
993 B
Makefile

export ROOT_MOD=github.com/suyiiyii/hertz101
.PHONY: gen-user
gen-user:
@cd app/user && cwgo server --type RPC --server_name user --module ${ROOT_MOD}/app/user --pass "-use ${ROOT_MOD}/rpc_gen/kitex_gen" -I ../../idl --idl ../../idl/user.proto
@cd rpc_gen && cwgo client --type RPC --server_name user --module ${ROOT_MOD}/rpc_gen --I ../idl --idl ../idl/user.proto
.PHONY: gen-auth
gen-auth:
@cd app/auth && cwgo server --type RPC --server_name auth --module ${ROOT_MOD}/app/auth --pass "-use ${ROOT_MOD}/rpc_gen/kitex_gen" -I ../../idl --idl ../../idl/auth.proto
@cd rpc_gen && cwgo client --type RPC --server_name auth --module ${ROOT_MOD}/rpc_gen --I ../idl --idl ../idl/auth.proto
.PHONY: gen-facade
gen-facade:
@cd app/facade && cwgo server --type HTTP --server_name facade --module ${ROOT_MOD}/app/facade -I ../../idl --idl ../../idl/facade/facade.proto
.PHONY: tidy
tidy:
@cd app/auth && go mod tidy
@cd app/user && go mod tidy
@cd app/facade && go mod tidy