骑着毛驴背单词
                                            骑着毛驴背单词
                                        
                                    > > > 这里我删除model的vars.tpl的模板,去掉字段生成时忽略的createtime和updatetime,会导致重新生成的代码,所有的model接口都不能正常的工作,insert会报字段不匹配的错误。因为我们的项目,时间都是用int64来表达的。 建议不要用同名字段,使用create_at和update_at替换,没必要在这里和模版做冲突
好像你可以把模版改成CreateAt和UpdateAt,如果你是历史项目的话 没有历史包袱的新项目就别头铁
show you go version and see you gopath/bin checkout goctl if not exsist ,please exec go install github.com/zeromicro/go-zero/tools/goctl@latest
https://legacy.go-zero.dev/cn/goctl-install.html
dockerhub看到的etcd-manage要么资料少,要么很久没更新
参考肝王的looklook吧,这种方式前端看不到错误信息https://github.com/Mikaelemmmm/go-zero-looklook
> > 不支持 client 的目录指定,目前只能指定 rpc 服务的目录,client 会放在 rpc 服务目录下 > > > The directory of the client is not supported, currently you can only specify the directory of the...
> 关于etc/yaml的有一个问题 > > Name: baseadmin.rpc ListenOn: 127.0.0.1:8080 > > 因为etcd是在本机上测试的话还好 但是如果是在集群和docker下每次都得修改 建议goctl默认生成的时候就直接0.0.0.0 这个是写死到代码里面的,到时候可以统一抽离到.tpl模版
> cache redis 方式外部调用只有 get set和一些常规的 希望提供 scan hset hget 目前只能自己重新实例化一个go-redis的对象来实现,你是什么场景下需要这种需求????