gf-demo-user
gf-demo-user copied to clipboard
A simple user API service.
controller 中没有其他的返回接口,带 error 只能返回 5xx,无法返回 401/403 之类的错误 看调用栈也只是捕获了异常,没有利用 ctx 反向传递结果,请问这种架构下如何自定义返回码呢? ```go func (c *cUser) SignIn(ctx context.Context, req *v1.UserSignInReq) (res *v1.UserSignInRes, err error) { err = service.User().SignIn(ctx, model.UserSignInInput{ Passport: req.Passport, Password:...
fix the typo vendor in .gitignore fix and add check-nickname api and the document.
https://github.com/gogf/gf/issues
该仓库不接受Issue提交,请提交到GF仓库地址:https://github.com/gogf/gf/issues
运行失败。add后再运行也无效。go版本:1.19.1
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0. Commits b225e7c http2: limit maximum handler goroutines to MaxConcurrentStreams 88194ad go.mod: update golang.org/x dependencies 2b60a61 quic: fix several bugs in flow control accounting 73d82ef...
internal/cmd/cmd.go:42 group.ALLMap(g.Map{ "/user/profile": userCtrl, })
gf gen pbentity -j Snake ,-j 参数不生效, pb文件没有添加json tag 
默认采用 sqlite 数据库启动,对于学习demo,不依赖数据库直接启动会更加方便些