Versions in this module Expand all Collapse all v1 v1.0.1 Dec 1, 2023 Changes in this version + var ConditionStrToEnum map[string]Condition = map[string]Condition + var FunMap = map[string]FildFillFunc + var ServiceUtil = serviceUtil + func SnowflakeId() string + func Uid() string + func Uuid() string + type AddWrapper struct + type BaseDao struct + Table string + func (obj *BaseDao[T]) Add(ctx context.Context, object any) (err error) + func (obj *BaseDao[T]) Edit(ctx context.Context, condition any, object any) (err error) + func (obj *BaseDao[T]) List(ctx context.Context, pageQuery *PageInp) (res *PageModel, err error) + func (obj *BaseDao[T]) Search(ctx context.Context, querObject any) (res *PageModel, err error) + type Condition int + const Condition_EQ + const Condition_GE + const Condition_GT + const Condition_IN + const Condition_LE + const Condition_LIKE + const Condition_LIKE_LEFT + const Condition_LIKE_RIGHT + const Condition_LT + const Condition_NE + const Page_Filed_PgNum_NAME + const Page_Filed_SIZE_NAME + type DataWrapper struct + Model map[string]interface{} + type EditWrapper struct + Model map[string]interface{} + type FildFillFunc func() string + type IDao interface + List func(ctx context.Context, pageQuery *PageInp) (res *PageModel, err error) + Search func(ctx context.Context, querObject any) (res *PageModel, err error) + type OrderItem struct + Asc bool + Column string + type PageInp struct + type PageModel struct + Current int + List interface{} + Size int + Total int + type PageQuery struct + Current uint32 + Orders []*OrderItem + Size uint32 + type QueryItem struct + Cond Condition + Field string + Value interface{} + type QueryWrapper struct + Quserys []*QueryItem