Documentation ¶
Overview ¶
Package po generated by 'freedom new-po'
Package po generated by 'freedom new-po'
Package po generated by 'freedom new-po'
Package po generated by 'freedom new-po'
Package po generated by 'freedom new-po'
Package po generated by 'freedom new-po'
Package po generated by 'freedom new-po'
Index ¶
- type Admin
- func (obj *Admin) GetChanges() map[string]interface{}
- func (obj *Admin) Location() map[string]interface{}
- func (obj *Admin) SetCreated(created time.Time)
- func (obj *Admin) SetName(name string)
- func (obj *Admin) SetUpdated(updated time.Time)
- func (obj *Admin) TableName() string
- func (obj *Admin) Update(name string, value interface{})
- type Cart
- func (obj *Cart) AddGoodsID(goodsID int)
- func (obj *Cart) AddNum(num int)
- func (obj *Cart) AddUserID(userID int)
- func (obj *Cart) GetChanges() map[string]interface{}
- func (obj *Cart) Location() map[string]interface{}
- func (obj *Cart) SetCreated(created time.Time)
- func (obj *Cart) SetGoodsID(goodsID int)
- func (obj *Cart) SetNum(num int)
- func (obj *Cart) SetUpdated(updated time.Time)
- func (obj *Cart) SetUserID(userID int)
- func (obj *Cart) TableName() string
- func (obj *Cart) Update(name string, value interface{})
- type Delivery
- func (obj *Delivery) AddAdminID(adminID int)
- func (obj *Delivery) GetChanges() map[string]interface{}
- func (obj *Delivery) Location() map[string]interface{}
- func (obj *Delivery) SetAdminID(adminID int)
- func (obj *Delivery) SetCreated(created time.Time)
- func (obj *Delivery) SetOrderNo(orderNo string)
- func (obj *Delivery) SetTrackingNumber(trackingNumber string)
- func (obj *Delivery) SetUpdated(updated time.Time)
- func (obj *Delivery) TableName() string
- func (obj *Delivery) Update(name string, value interface{})
- type Goods
- func (obj *Goods) AddPrice(price int)
- func (obj *Goods) AddStock(stock int)
- func (obj *Goods) GetChanges() map[string]interface{}
- func (obj *Goods) Location() map[string]interface{}
- func (obj *Goods) SetCreated(created time.Time)
- func (obj *Goods) SetName(name string)
- func (obj *Goods) SetPrice(price int)
- func (obj *Goods) SetStock(stock int)
- func (obj *Goods) SetTag(tag string)
- func (obj *Goods) SetUpdated(updated time.Time)
- func (obj *Goods) TableName() string
- func (obj *Goods) Update(name string, value interface{})
- type Order
- func (obj *Order) AddTotalPrice(totalPrice int)
- func (obj *Order) AddUserID(userID int)
- func (obj *Order) GetChanges() map[string]interface{}
- func (obj *Order) Location() map[string]interface{}
- func (obj *Order) SetCreated(created time.Time)
- func (obj *Order) SetOrderNo(orderNo string)
- func (obj *Order) SetStatus(status string)
- func (obj *Order) SetTotalPrice(totalPrice int)
- func (obj *Order) SetUpdated(updated time.Time)
- func (obj *Order) SetUserID(userID int)
- func (obj *Order) TableName() string
- func (obj *Order) Update(name string, value interface{})
- type OrderDetail
- func (obj *OrderDetail) AddGoodsID(goodsID int)
- func (obj *OrderDetail) AddNum(num int)
- func (obj *OrderDetail) GetChanges() map[string]interface{}
- func (obj *OrderDetail) Location() map[string]interface{}
- func (obj *OrderDetail) SetCreated(created time.Time)
- func (obj *OrderDetail) SetGoodsID(goodsID int)
- func (obj *OrderDetail) SetGoodsName(goodsName string)
- func (obj *OrderDetail) SetNum(num int)
- func (obj *OrderDetail) SetOrderNo(orderNo string)
- func (obj *OrderDetail) SetUpdated(updated time.Time)
- func (obj *OrderDetail) TableName() string
- func (obj *OrderDetail) Update(name string, value interface{})
- type User
- func (obj *User) AddMoney(money int)
- func (obj *User) GetChanges() map[string]interface{}
- func (obj *User) Location() map[string]interface{}
- func (obj *User) SetCreated(created time.Time)
- func (obj *User) SetMoney(money int)
- func (obj *User) SetName(name string)
- func (obj *User) SetPassword(password string)
- func (obj *User) SetUpdated(updated time.Time)
- func (obj *User) TableName() string
- func (obj *User) Update(name string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { ID int `gorm:"primaryKey;column:id"` Name string `gorm:"column:name"` // 管理员名称 Created time.Time `gorm:"column:created"` Updated time.Time `gorm:"column:updated"` // contains filtered or unexported fields }
Admin .
func (*Admin) GetChanges ¶ added in v1.8.8
GetChanges .
type Cart ¶
type Cart struct { ID int `gorm:"primaryKey;column:id"` UserID int `gorm:"column:user_id"` // 用户ID GoodsID int `gorm:"column:goods_id"` // 商品id Num int `gorm:"column:num"` // 数量 Created time.Time `gorm:"column:created"` Updated time.Time `gorm:"column:updated"` // contains filtered or unexported fields }
Cart .
func (*Cart) GetChanges ¶ added in v1.8.8
GetChanges .
type Delivery ¶
type Delivery struct { ID int `gorm:"primaryKey;column:id"` AdminID int `gorm:"column:admin_id"` // 管理员id OrderNo string `gorm:"column:order_no"` TrackingNumber string `gorm:"column:tracking_number"` // 快递单号 Created time.Time `gorm:"column:created"` Updated time.Time `gorm:"column:updated"` // contains filtered or unexported fields }
Delivery .
func (*Delivery) AddAdminID ¶ added in v1.8.0
AddAdminID .
func (*Delivery) GetChanges ¶ added in v1.8.8
GetChanges .
func (*Delivery) SetAdminID ¶ added in v1.8.0
SetAdminID .
func (*Delivery) SetTrackingNumber ¶
SetTrackingNumber .
type Goods ¶
type Goods struct { ID int `gorm:"primaryKey;column:id"` Name string `gorm:"column:name"` // 商品名称 Price int `gorm:"column:price"` // 价格 Stock int `gorm:"column:stock"` // 库存 Tag string `gorm:"column:tag"` // 标签 Created time.Time `gorm:"column:created"` Updated time.Time `gorm:"column:updated"` // contains filtered or unexported fields }
Goods .
func (*Goods) GetChanges ¶ added in v1.8.8
GetChanges .
type Order ¶
type Order struct { ID int `gorm:"primaryKey;column:id"` OrderNo string `gorm:"column:order_no"` UserID int `gorm:"column:user_id"` // 用户id TotalPrice int `gorm:"column:total_price"` // 总价 Status string `gorm:"column:status"` // 支付,未支付,发货,完成 Created time.Time `gorm:"column:created"` Updated time.Time `gorm:"column:updated"` // contains filtered or unexported fields }
Order .
func (*Order) GetChanges ¶ added in v1.8.8
GetChanges .
type OrderDetail ¶
type OrderDetail struct { ID int `gorm:"primaryKey;column:id"` OrderNo string `gorm:"column:order_no"` // 订单id GoodsID int `gorm:"column:goods_id"` // 商品id Num int `gorm:"column:num"` // 数量 GoodsName string `gorm:"column:goods_name"` // 商品名称 Created time.Time `gorm:"column:created"` Updated time.Time `gorm:"column:updated"` // contains filtered or unexported fields }
OrderDetail .
func (*OrderDetail) AddGoodsID ¶ added in v1.8.0
func (obj *OrderDetail) AddGoodsID(goodsID int)
AddGoodsID .
func (*OrderDetail) GetChanges ¶ added in v1.8.8
func (obj *OrderDetail) GetChanges() map[string]interface{}
GetChanges .
func (*OrderDetail) Location ¶ added in v1.8.8
func (obj *OrderDetail) Location() map[string]interface{}
Location .
func (*OrderDetail) SetGoodsID ¶ added in v1.8.0
func (obj *OrderDetail) SetGoodsID(goodsID int)
SetGoodsID .
func (*OrderDetail) SetGoodsName ¶
func (obj *OrderDetail) SetGoodsName(goodsName string)
SetGoodsName .
func (*OrderDetail) Update ¶ added in v1.8.9
func (obj *OrderDetail) Update(name string, value interface{})
Update .
type User ¶
type User struct { ID int `gorm:"primaryKey;column:id"` // 用户id Name string `gorm:"column:name"` // 用户名称 Money int `gorm:"column:money"` // 金钱 Password string `gorm:"column:password"` // 密码 Created time.Time `gorm:"column:created"` Updated time.Time `gorm:"column:updated"` // contains filtered or unexported fields }
User .
func (*User) GetChanges ¶ added in v1.8.8
GetChanges .
Click to show internal directories.
Click to hide internal directories.