Versions in this module Expand all Collapse all v0 v0.0.2 Apr 7, 2024 v0.0.1 Apr 5, 2024 Changes in this version + const OrderAsc + const OrderDesc type IchubPageRequest + func (this *IchubPageRequest) OrderByAsc(field string) *IchubPageRequest + func (this *IchubPageRequest) OrderByDesc(field string) *IchubPageRequest v0.0.0 Apr 5, 2024 Changes in this version + const Between + const Eq + const Ge + const Gt + const In + const Le + const Like + const Lt + const Ne + const NotBetween + const NotIn + const NotLike + var OpSign = map[int]FieldSign + type FieldSign string + type IchubPageRequest struct + Fields []*pagebase.IchubQueryField + OrderBys []*pagebase.OrderByDto + PageCurrent int + PageSize int + func NewIchubPageRequest() *IchubPageRequest + func NewPageRequest(pageSize int, pageCurrent int) *IchubPageRequest + func (daoInst *IchubPageRequest) Insert(model interface{}) (interface{}, error) + func (daoInst *IchubPageRequest) Update(model interface{}, pkey int64) (interface{}, error) + func (this *IchubPageRequest) Between(field string, opValues []interface{}) *IchubPageRequest + func (this *IchubPageRequest) BuildWhere(dbc *gorm.DB) *gorm.DB + func (this *IchubPageRequest) CheckTyope(field string, value interface{}) + func (this *IchubPageRequest) Clear() + func (this *IchubPageRequest) Count(model interface{}) (int, error) + func (this *IchubPageRequest) CountTable(table string) (int, error) + func (this *IchubPageRequest) Eq(field string, opValues interface{}) *IchubPageRequest + func (this *IchubPageRequest) FindBy(model interface{}, result interface{}) error + func (this *IchubPageRequest) FindById(model interface{}, key int64) (bool, error) + func (this *IchubPageRequest) FindByTable(table string, result interface{}) error + func (this *IchubPageRequest) FindFieldSign(op int) pagebase.FieldSign + func (this *IchubPageRequest) Ge(field string, opValue interface{}) *IchubPageRequest + func (this *IchubPageRequest) GetDB() *gorm.DB + func (this *IchubPageRequest) Gt(field string, opValue interface{}) *IchubPageRequest + func (this *IchubPageRequest) In(field string, opValues []interface{}) *IchubPageRequest + func (this *IchubPageRequest) InitPage() + func (this *IchubPageRequest) Le(field string, opValue interface{}) *IchubPageRequest + func (this *IchubPageRequest) Like(field string, opValue interface{}) *IchubPageRequest + func (this *IchubPageRequest) Limit() int + func (this *IchubPageRequest) Lt(field string, opValue interface{}) *IchubPageRequest + func (this *IchubPageRequest) NotBetween(field string, opValues []interface{}) *IchubPageRequest + func (this *IchubPageRequest) NotIn(field string, opValues []interface{}) *IchubPageRequest + func (this *IchubPageRequest) NotLike(field string, opValue interface{}) *IchubPageRequest + func (this *IchubPageRequest) Order(dbc *gorm.DB) *gorm.DB + func (this *IchubPageRequest) OrderBy(field string, sort string) *IchubPageRequest + func (this *IchubPageRequest) Query(model interface{}, models interface{}) *IchubPageResult + func (this *IchubPageRequest) QueryFields(f string, opType int, opValues []interface{}) *IchubPageRequest + func (this *IchubPageRequest) QueryTable(table string, models interface{}) *IchubPageResult + func (this *IchubPageRequest) SetLimit(dbc *gorm.DB) *gorm.DB + func (this *IchubPageRequest) Start() int + func (this *IchubPageRequest) ToMap() (*map[string]interface{}, error) + type IchubPageResult struct + Code int + Data interface{} + Msg string + PageCurrent int + PageSize int + Total int + func NewIchubPageResult() *IchubPageResult + func NewPageResult(code int, msg string) *IchubPageResult + func NewPageResultError(msg string) *IchubPageResult + func ValueOf(req *IchubPageRequest) *IchubPageResult + func (this *IchubPageResult) CodeMsg(Code int, Msg string) *IchubPageResult + func (this *IchubPageResult) FailMsg(Msg string) *IchubPageResult + func (this *IchubPageResult) OkMsg(Msg string) *IchubPageResult + func (this *IchubPageResult) Success() *IchubPageResult + func (this *IchubPageResult) To(out interface{}) + type IchubQueryField struct + Field string + OpType FieldSign + Values []interface{} + func NewFields(field string, opType int, opValues []interface{}) *IchubQueryField + func NewQueryFields() *IchubQueryField + func (this *IchubQueryField) CheckType() string + func (this *IchubQueryField) SetField(field string) + func (this *IchubQueryField) Values2InStr() string + type OrderByDto struct + Field string + Sort string + func NewOrderByDto() *OrderByDto + func OrderBy(field, sort string) *OrderByDto + func (this *OrderByDto) SetField(field string) + func (this *OrderByDto) SetSort(sort string) + func (this *OrderByDto) ToOrderBy() string