1 Star 1 Fork 0

李沐风岚/murphy

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BaseDao.go 785 Bytes
一键复制 编辑 原始数据 按行查看 历史
Your Name 提交于 2025-07-31 10:04 +08:00 . up
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import "gitee.com/oshine/murphy/core/mdb"
type SaveDel interface {
Save() bool
Delete() bool
GetObj() mdb.MField
//SetObj(d mdb.MField)
}
type Base struct {
OnFieldChange func(field string)
Save func() bool
Delete func() bool
}
type Pagination struct {
Daos []any
Total, Current, PageSize int64
}
func (p *Pagination) SetDao(pf []any) {
p.Daos = pf
}
func (p *Pagination) SetCount(total, current, pageSize int64) {
p.Total = total
p.Current = current
p.PageSize = pageSize
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/oshine/murphy.git
git@gitee.com:oshine/murphy.git
oshine
murphy
murphy
v1.0.26

搜索帮助