Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type Performance ¶
type Performance struct {
Id int64 `db:"id"` // ID
Title string `db:"title"` // 标题
Description string `db:"description"` // 描述
City string `db:"city"` // 所在城市
Address string `db:"address"` // 具体地址
PrioritySaleAt int64 `db:"priority_sale_at"` // 优先购开售时间
SaleAt int64 `db:"sale_at"` // 开售时间
CreatedAt time.Time `db:"created_at"` // 创建时间
UpdatedAt time.Time `db:"updated_at"` // 更新时间
IsDel int64 `db:"is_del"` // 是否删除: 0=未指定、1=是、2=否: 默认=2
}
type PerformanceModel ¶
type PerformanceModel interface {
// contains filtered or unexported methods
}
PerformanceModel is an interface to be customized, add more methods here, and implement the added methods in customPerformanceModel.
func NewPerformanceModel ¶
func NewPerformanceModel(conn sqlx.SqlConn) PerformanceModel
NewPerformanceModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.