1 Star 0 Fork 0

h79/goutils

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
wrapper.go 914 Bytes
Copy Edit Raw Blame History
huqiuyun authored 2023-06-13 17:29 . IModel foreach
package wrapper
import "gitee.com/h79/goutils/common/option"
type IFrom interface {
Is() bool
SetChild(child bool)
SetAs(as string)
Build(opts ...option.Option) string
}
type IBuilder interface {
Is() bool
Build(opts ...option.Option) string
}
type ILimit interface {
Is() bool
GetLimit() int
GetOffset() int
Build(opts ...option.Option) string
}
type IQuery interface {
Is() bool
Query() string
Value() []interface{}
Build(opts ...option.Option) string
}
type ISelect interface {
Is() bool
Query() []string
Value() []interface{}
Build(opts ...option.Option) string
}
type ICond interface {
HasValid() error
Decode(cond string)
Where(cond *Condition)
}
type IModel interface {
Clone() IModel
Model() interface{}
Set(key string, v interface{})
Get(key string) interface{}
ForEach(cb func(key string, v interface{}))
}
type NewCondFunc func() ICond
type NewModelFunc func() IModel
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/h79/goutils.git
git@gitee.com:h79/goutils.git
h79
goutils
goutils
v1.8.22

Search

23e8dbc6 1850385 7e0993f3 1850385