1 Star 1 Fork 0

1701/gpa

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
count.go 402 Bytes
一键复制 编辑 原始数据 按行查看 历史
1701 提交于 2022-01-26 20:35 +08:00 . 增加错误数统计
package repos
import "gitee.com/knowgo/gpa/examples/pratics/models"
type Count interface {
CountByName(user models.User) (int64, models.User, error)
// sql:select count(*) from "user" where id=:id and age>:age
CountName(user *models.User, name string) (int64, error)
// sql:select count(1) where id in :ids and age>:age
CountXName(user *models.User, name string, ids []uint64) (int64, error)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/knowgo/gpa.git
git@gitee.com:knowgo/gpa.git
knowgo
gpa
gpa
v0.2.14

搜索帮助