Documentation ¶
Overview ¶
Code generated by 'freedom new-po'
Code generated by 'freedom new-po'
Code generated by 'freedom new-po'
Code generated by 'freedom new-po'
Code 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 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 }
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 }
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 }
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 }
Click to show internal directories.
Click to hide internal directories.