kesonan

Results 34 comments of kesonan

https://github.com/zeromicro/go-zero/blob/master/tools/goctl/rpc/README.md rpc支持分组的哈,你可以从 master 安装体验一下,至于 pb 的生成这个不受 goctl 控制哈。 It has already support rpc grouping, you can upgrade goctl to the latest version via the master branch, for the tag `omitempty`...

This release has omitted the revision of the goctl version, which does not affect the use of the function, and there has no major changes on this release.

不支持 client 的目录指定,目前只能指定 rpc 服务的目录,client 会放在 rpc 服务目录下 > The directory of the client is not supported, currently you can only specify the directory of the rpc service, the client...

InsertOne 中的 key 是删除缓存,不管 id 是否存在,对业务都不影响,FindOne 不可能有空 ID,因为已经做了id 校验 > The `key` in function InsertOne is used to delete redis cache, it has no business effect whether the id exists...

空 id 在调用 `ObjectIDFromHex` 时就会报错,这里设计没有问题的哈,你可以写单测试一下哈 > It will report an error if you given an empty id string and call `ObjectIDFromHex`, you can write a unit test to verify `FindOne`...

@wonderfate zero-api only supported slice, so you will never get ``` type MyPointResp struct { Coords []float64 `json:"coords"` } ``` from ``` type ( MyPointResp { Coords [2]float64 `json:"coords"` }...

我将会按照 `go-sql-driver` 的数据类型关系去处理