修复查询语句实例服用,前后条件互相干扰问题

This commit is contained in:
2025-03-02 14:54:48 +08:00
parent e960797bb2
commit 66bcb90ff9
4 changed files with 37 additions and 116 deletions

View File

@ -69,6 +69,13 @@ func WithLimit[T op_type.Int](limit T, offset T) define.SetOption {
}
}
func WithClearLimit() define.SetOption {
return func(o *define.Option) {
o.Limit = 0
o.Offset = 0
}
}
// WithLimitByPageAndSize 通过page和size构建条件
//
// Author : go_developer@163.com<白茶清欢>