代码拉取完成,页面将自动刷新
cwgo server --type RPC --idl ../../idl/echo.proto --server_name server_echo --module gitee.com/gcy3y/gomall/demo/demo_proto -I ../../idl/
cwgo client --type RPC --idl ../../idl/echo.proto --server_name client_echo --module gitee.com/gcy3y/gomall/demo/demo_proto -I ../../idl/
cwgo server --type HTTP --idl ../../idl/frontend/home.proto --server_name server_home --module gitee.com/gcy3y/gomall/app/frontend -I ../../idl/
mkdir -p app/user && make gen-server svc=user
mkdir -p app/product && make gen-server svc=product
mkdir -p app/payment && make gen-server svc=payment
mkdir -p app/order && make gen-server svc=order
mkdir -p app/email && make gen-server svc=email
mkdir -p app/checkout && make gen-server svc=checkout
mkdir -p app/cart && make gen-server svc=cart
mkdir -p rpc_gen && make gen-client svc=user
make gen-client svc=product
make gen-client svc=payment
make gen-client svc=order
make gen-client svc=email
make gen-client svc=checkout
make gen-client svc=cart
mkdir -p app/frontend && make gen-frontend
cwgo model --db_type mysql --dsn "root:root@tcp(localhost:3306)/user?charset=utf8mb4&parseTime=True&loc=Local"
make run svc=cart
make run svc=checkout
make run svc=email
make run svc=order
make run svc=payment
make run svc=product
make run svc=user
make run svc=frontend
go work use app/cart
go work use app/checkout
go work use app/email
go work use app/order
go work use app/payment
go work use app/product
go work use app/user
go work use app/frontend
//swagger
go install github.com/swaggo/swag/cmd/swag@latest
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。