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'
Index ¶
- type Admin
- type Cart
- func (obj *Cart) AddGoodsID(goodsID int)
- func (obj *Cart) AddNum(num int)
- func (obj *Cart) AddUserID(userID int)
- 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) TakeChanges() map[string]interface{}
- type Delivery
- func (obj *Delivery) AddAdminID(adminID int)
- func (obj *Delivery) AddOrderID(orderID int)
- func (obj *Delivery) SetAdminID(adminID int)
- func (obj *Delivery) SetCreated(created time.Time)
- func (obj *Delivery) SetOrderID(orderID int)
- func (obj *Delivery) SetTrackingNumber(trackingNumber string)
- func (obj *Delivery) SetUpdated(updated time.Time)
- func (obj *Delivery) TableName() string
- func (obj *Delivery) TakeChanges() map[string]interface{}
- type Goods
- func (obj *Goods) AddPrice(price int)
- func (obj *Goods) AddStock(stock int)
- 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) SetUpdated(updated time.Time)
- func (obj *Goods) TableName() string
- func (obj *Goods) TakeChanges() map[string]interface{}
- type Order
- func (obj *Order) AddGoodsID(goodsID int)
- func (obj *Order) AddNum(num int)
- func (obj *Order) AddUserID(userID int)
- func (obj *Order) SetCreated(created time.Time)
- func (obj *Order) SetGoodsID(goodsID int)
- func (obj *Order) SetNum(num int)
- func (obj *Order) SetUpdated(updated time.Time)
- func (obj *Order) SetUserID(userID int)
- func (obj *Order) TableName() string
- func (obj *Order) TakeChanges() map[string]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:"primary_key;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 .
type Cart ¶
type Cart struct { ID int `gorm:"primary_key;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 .
type Delivery ¶
type Delivery struct { ID int `gorm:"primary_key;column:id"` AdminID int `gorm:"column:admin_id"` // 管理员id OrderID int `gorm:"column:order_id"` // 订单id 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) AddOrderID ¶ added in v1.8.0
AddOrderID .
func (*Delivery) SetAdminID ¶ added in v1.8.0
SetAdminID .
func (*Delivery) SetOrderID ¶ added in v1.8.0
SetOrderID .
func (*Delivery) SetTrackingNumber ¶
SetTrackingNumber .
func (*Delivery) TakeChanges ¶
TakeChanges .
type Goods ¶
type Goods struct { ID int `gorm:"primary_key;column:id"` Name string `gorm:"column:name"` // 商品名称 Price int `gorm:"column:price"` // 价格 Stock int `gorm:"column:stock"` // 库存 Created time.Time `gorm:"column:created"` Updated time.Time `gorm:"column:updated"` // contains filtered or unexported fields }
Goods .
type Order ¶
type Order struct { ID int `gorm:"primary_key;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 }
Order .
Click to show internal directories.
Click to hide internal directories.