Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //DB is sqlx.DB对象 DB *sqlx.DB )
Functions ¶
Types ¶
type PagerQuery ¶
PagerQuery 分页查询参数
type PagerResult ¶
type PagerResult struct { Total int64 `json:"total,string"` PageSize int `json:"pagesize"` PageIndex int `json:"pageindex"` }
PagerResult 分页查询返回值
type Snowflake ¶
A Snowflake struct holds the basic information needed for a snowflake generator worker
func NewSnowflake ¶
NewSnowflake returns a new snowflake worker that can be used to generate snowflake IDs
type TableModel ¶
type TableModel struct { ID int64 `json:"id,string" db:"id"` CreatorID int64 `json:"creator_id" db:"creator_id"` Creator string `json:"creator" db:"creator"` CreatorIP string `json:"creator_ip" db:"creator_ip"` CreateTime string `json:"create_time" db:"create_time"` ModifierID int64 `json:"modifier_id" db:"modifier_id"` Modifier string `json:"modifier" db:"modifier"` ModifierIP string `json:"modifier_ip" db:"modifier_ip"` ModifyTime string `json:"modify_time" db:"modify_time" gorm:"default:NULL"` DeleteTag int `json:"delete_tag" db:"delete_tag"` }
TableModel 包含基础字段
Click to show internal directories.
Click to hide internal directories.