Documentation ¶
Overview ¶
Code generated by gormer. DO NOT EDIT.
Index ¶
Constants ¶
View Source
const OrderTableName = "orders"
Table Level Info
Variables ¶
View Source
var OrderFieldAll = []OrderField{"id", "name", "price", "create_time", "update_time", "delete_status"}
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { Id int64 `gorm:"column:id"` // 主键 Name string `gorm:"column:name"` // 名称,建议唯一 Price float64 `gorm:"column:price"` // 订单价格 CreateTime time.Time `gorm:"column:create_time"` // 创建时间 UpdateTime time.Time `gorm:"column:update_time"` // 更新时间 DeleteStatus int `gorm:"column:delete_status"` // 删除状态,1表示软删除 }
Kernel struct for table for one row
type OrderField ¶
type OrderField string
Field Level Info
const ( OrderFieldId OrderField = "id" OrderFieldName OrderField = "name" OrderFieldPrice OrderField = "price" OrderFieldCreateTime OrderField = "create_time" OrderFieldUpdateTime OrderField = "update_time" OrderFieldDeleteStatus OrderField = "delete_status" )
type OrderOptions ¶
Kernel struct for table operation
func NewOrderOptions ¶
func NewOrderOptions(target *Order, fields ...OrderField) *OrderOptions
func NewOrderOptionsAll ¶
func NewOrderOptionsAll(target *Order) *OrderOptions
func NewOrderOptionsRawString ¶
func NewOrderOptionsRawString(target *Order, fields ...string) *OrderOptions
Click to show internal directories.
Click to hide internal directories.