re-dylan
re-dylan
You can define model.UpdateStatus func in your model.
You can sort after mr.
You should convert time local like this. https://stackoverflow.com/questions/38419637/golang-mgo-how-can-i-store-isodate-by-gmt8-time-zone-in-mongodb So you can change model code by using template. https://go-zero.dev/docs/goctl/template-cmd like this ~/.byctl/1.3.9/mongo/model.tpl ```go func (m *default{{.Type}}Model) FindOne(ctx context.Context, id string) (*{{.Type}},...
The generated configuration file is only used for local debugging. Why do you need to change this?
Go-zero has implemented ETCD's automatic service discovery capability, you can check https://github.com/zeromicro/zero-examples/blob/main/rpc/client/lb/main.go#L30
当我们使用 mongoc sqlc 的时候,我们希望 cache 的结构仅仅只是一种 kv 结构。不应该支持其他的结构,否则会造成缓存失效特别麻烦。可以讲一下的场景需求。
What's your RestConf.Verbose in config? Or can you give a demo?
This is an issue with Etcd. Please check https://github.com/etcd-io/etcd/issues/10450
> > Is this what you are talking about? https://github.com/zeromicro/go-zero/blob/master/core/collection/safemap.go > > You can see the test case for the specific usage: https://github.com/zeromicro/go-zero/blob/master/core/collection/safemap_test.go > > It is similar to go's...