Ai
2 Star 1 Fork 2

go-mao/mao

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
types.go 556 Bytes
一键复制 编辑 原始数据 按行查看 历史
haitgo 提交于 2023-03-04 17:07 +08:00 . save
package frame
// 运行模式
type RunMode string
// 运行模式
const (
RUN_MODE_DEVELOP RunMode = "dev"
RUN_MODE_PRODUCT RunMode = "prod"
)
// 查询结构
type BaseQuery struct {
Page int `bind:"page" form:"page"`
Limit int `bind:"limit" form:"limit"`
}
// 任务线处理器
type SetSetTaskLiner interface {
SetTaskline(*Taskline)
}
// 任务线包装,用给模块组合使用
type Module struct {
tl *Taskline
}
func (this *Module) Taskline() *Taskline {
return this.tl
}
func (this *Module) SetTaskline(t *Taskline) {
this.tl = t
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/go-mao/mao.git
git@gitee.com:go-mao/mao.git
go-mao
mao
mao
v1.0.9

搜索帮助