2 Star 1 Fork 2

go-mao/mao

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
types.go 598 Bytes
Copy Edit Raw Blame History
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.25

Search