Versions in this module Expand all Collapse all v1 v1.7.7 Jun 15, 2020 v1.7.6 Jun 15, 2020 v1.7.5 Jun 15, 2020 v1.7.4 Jun 14, 2020 Changes in this version + type Admin struct + Created time.Time + Id int + Name string + Updated time.Time + 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) TakeChanges() map[string]interface{} + type Cart struct + Created time.Time + GoodsId int + Id int + Num int + Updated time.Time + UserId int + 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 struct + AdminId int + Created time.Time + Id int + OrderNo string + TrackingNumber string + Updated time.Time + func (obj *Delivery) AddAdminId(adminId int) + 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) TakeChanges() map[string]interface{} + type Goods struct + Created time.Time + Id int + Name string + Price int + Stock int + Tag string + Updated time.Time + 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) SetTag(tag string) + func (obj *Goods) SetUpdated(updated time.Time) + func (obj *Goods) TableName() string + func (obj *Goods) TakeChanges() map[string]interface{} + type Order struct + Created time.Time + Id int + OrderNo string + Status string + TotalPrice int + Updated time.Time + UserId int + func (obj *Order) AddTotalPrice(totalPrice int) + func (obj *Order) AddUserId(userId int) + 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) TakeChanges() map[string]interface{} + type OrderDetail struct + Created time.Time + GoodsId int + GoodsName string + Id int + Num int + OrderNo string + Updated time.Time + func (obj *OrderDetail) AddGoodsId(goodsId int) + func (obj *OrderDetail) AddNum(num int) + 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) TakeChanges() map[string]interface{} + type User struct + Created time.Time + Id int + Money int + Name string + Password string + Updated time.Time + func (obj *User) AddMoney(money int) + 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) TakeChanges() map[string]interface{}