Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseModel ¶
type BaseModel struct { Id int64 `json:"id" gorm:"primaryKey"` CreatedAt *time.Time `json:"created_at,omitempty" ` UpdatedAt *time.Time `json:"updated_at,omitempty" ` DeletedAt *gorm.DeletedAt `json:"deleted_at,omitempty" ` }
添加软删除
type DBCondition ¶ added in v0.2.1
func GetNameLikeCondition ¶ added in v0.2.1
func GetNameLikeCondition(name string) DBCondition
func GetOrder ¶ added in v0.2.1
func GetOrder(order string) DBCondition
func GetTitleLikeCondition ¶ added in v0.2.1
func GetTitleLikeCondition(title string) DBCondition
func Paginate ¶
func Paginate(page, pageSize int) DBCondition
Click to show internal directories.
Click to hide internal directories.