Versions in this module Expand all Collapse all v0 v0.2.0 Jun 23, 2023 Changes in this version type OrderOption + func (opt *OrderOption) BuildPage(db *gorm.DB) *gorm.DB + func (opt *OrderOption) BuildQuery(db *gorm.DB) *gorm.DB + func (opt *OrderOption) Select(fields ...string) *OrderOption + func (opt *OrderOption) Where(query string, args ...interface{}) *OrderOption type UserOption + func (opt *UserOption) BuildPage(db *gorm.DB) *gorm.DB + func (opt *UserOption) BuildQuery(db *gorm.DB) *gorm.DB + func (opt *UserOption) Select(fields ...string) *UserOption + func (opt *UserOption) Where(query string, args ...interface{}) *UserOption v0.1.0 Jun 22, 2023 Changes in this version + const OrderTableName + const UserTableName + type Order struct + CreateTime time.Time + Deleted int + Id int64 + Name string + Price float64 + UpdateTime time.Time + func (order *Order) FieldNames() []string + func (order *Order) GetValueByField(field string) interface{} + func (order *Order) TableName() string + type OrderOption struct + Fields []string + Order *Order + func NewOrderOption(target *Order, fields ...string) *OrderOption + func NewOrderOptionAll(target *Order) *OrderOption + func (opt *OrderOption) GetOrderBy() string + func (opt *OrderOption) GetPage() *OrderPage + func (opt *OrderOption) OrderBy(column string) *OrderOption + func (opt *OrderOption) SetPage(pageNum, pageSize int) *OrderOption + type OrderPage struct + PageNum int + PageSize int + type User struct + CreateTime time.Time + Deleted int + Id int64 + Nickname string + Password string + Phone string + Salt string + Status string + UpdateTime time.Time + Username string + func (user *User) FieldNames() []string + func (user *User) GetValueByField(field string) interface{} + func (user *User) TableName() string + type UserOption struct + Fields []string + User *User + func NewUserOption(target *User, fields ...string) *UserOption + func NewUserOptionAll(target *User) *UserOption + func (opt *UserOption) GetOrderBy() string + func (opt *UserOption) GetPage() *UserPage + func (opt *UserOption) OrderBy(column string) *UserOption + func (opt *UserOption) SetPage(pageNum, pageSize int) *UserOption + type UserPage struct + PageNum int + PageSize int