auth service

This commit is contained in:
2025-01-20 16:22:41 +08:00
parent 76d3d6f20a
commit bda2501bae
40 changed files with 3340 additions and 1 deletions
+7 -1
View File
@@ -3,4 +3,10 @@ export ROOT_MOD=github.com/suyiiyii/hertz101
.PHONY: gen-user
gen-user:
@cd app/user && cwgo server --type RPC --service 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 --service user --module ${ROOT_MOD}/rpc_gen --I ../idl --idl ../idl/user.proto
@cd rpc_gen && cwgo client --type RPC --service user --module ${ROOT_MOD}/rpc_gen --I ../idl --idl ../idl/user.proto
.PHONY: gen-auth
gen-auth:
@cd app/auth && cwgo server --type RPC --service 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 --service auth --module ${ROOT_MOD}/rpc_gen --I ../idl --idl ../idl/auth.proto