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'
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
- type Albums
- 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) 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 Dump
- 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) SetTag(tag string)
- func (obj *Goods) SetUpdated(updated time.Time)
- func (obj *Goods) TableName() string
- func (obj *Goods) TakeChanges() map[string]interface{}
- type Order
- 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
- 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 OrderLog
- type Product
- type TestEmails
- func (obj *TestEmails) AddSubscribed(subscribed int)
- func (obj *TestEmails) AddTestUserID(testUserID int)
- func (obj *TestEmails) AddTypeID(typeID int)
- func (obj *TestEmails) SetCreatedAt(createdAt time.Time)
- func (obj *TestEmails) SetDeletedAt(deletedAt time.Time)
- func (obj *TestEmails) SetSubscribed(subscribed int)
- func (obj *TestEmails) SetTestUserID(testUserID int)
- func (obj *TestEmails) SetTypeID(typeID int)
- func (obj *TestEmails) SetUpdatedAt(updatedAt time.Time)
- func (obj *TestEmails) TableName() string
- func (obj *TestEmails) TakeChanges() map[string]interface{}
- type TestUsers
- func (obj *TestUsers) AddAge(age int)
- func (obj *TestUsers) AddStatus(status int)
- func (obj *TestUsers) SetAge(age int)
- func (obj *TestUsers) SetCreatedAt(createdAt time.Time)
- func (obj *TestUsers) SetDeletedAt(deletedAt time.Time)
- func (obj *TestUsers) SetPassword(password string)
- func (obj *TestUsers) SetStatus(status int)
- func (obj *TestUsers) SetUpdatedAt(updatedAt time.Time)
- func (obj *TestUsers) SetUserName(userName string)
- func (obj *TestUsers) TableName() string
- func (obj *TestUsers) TakeChanges() map[string]interface{}
- type User
- 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{}
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 Albums ¶
type Albums struct { AlbumID int `gorm:"primary_key;column:AlbumId"` Title string `gorm:"column:Title"` ArtistID int `gorm:"column:ArtistId"` // contains filtered or unexported fields }
Albums .
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 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) SetTrackingNumber ¶
SetTrackingNumber .
func (*Delivery) TakeChanges ¶
TakeChanges .
type Dump ¶
type Dump struct { ID int `gorm:"primary_key;column:id"` Name string `gorm:"column:name"` // 管理员名称 Dump string `gorm:"column:dump"` // contains filtered or unexported fields }
Dump .
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"` // 库存 Tag string `gorm:"column:tag"` // 标签 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"` 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 .
type OrderDetail ¶
type OrderDetail struct { ID int `gorm:"primary_key;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) SetGoodsName ¶
func (obj *OrderDetail) SetGoodsName(goodsName string)
SetGoodsName .
func (*OrderDetail) TakeChanges ¶
func (obj *OrderDetail) TakeChanges() map[string]interface{}
TakeChanges .
type OrderLog ¶
type OrderLog struct { ID int `gorm:"primary_key;column:id"` OrderID int `gorm:"column:order_id"` Desc string `gorm:"column:desc"` // contains filtered or unexported fields }
OrderLog .
func (*OrderLog) TakeChanges ¶
TakeChanges .
type Product ¶
type Product struct { ID int `gorm:"primary_key;column:id"` Price int `gorm:"column:price"` Desc string `gorm:"column:desc"` Test int `gorm:"column:test"` // contains filtered or unexported fields }
Product .
func (*Product) TakeChanges ¶
TakeChanges .
type TestEmails ¶
type TestEmails struct { ID int `gorm:"primary_key;column:id"` CreatedAt time.Time `gorm:"column:created_at"` UpdatedAt time.Time `gorm:"column:updated_at"` DeletedAt time.Time `gorm:"column:deleted_at"` TypeID int `gorm:"column:type_id"` Subscribed int `gorm:"column:subscribed"` TestUserID int `gorm:"column:test_user_id"` // contains filtered or unexported fields }
TestEmails .
func (*TestEmails) AddSubscribed ¶
func (obj *TestEmails) AddSubscribed(subscribed int)
AddSubscribed .
func (*TestEmails) AddTestUserID ¶
func (obj *TestEmails) AddTestUserID(testUserID int)
AddTestUserID .
func (*TestEmails) SetCreatedAt ¶
func (obj *TestEmails) SetCreatedAt(createdAt time.Time)
SetCreatedAt .
func (*TestEmails) SetDeletedAt ¶
func (obj *TestEmails) SetDeletedAt(deletedAt time.Time)
SetDeletedAt .
func (*TestEmails) SetSubscribed ¶
func (obj *TestEmails) SetSubscribed(subscribed int)
SetSubscribed .
func (*TestEmails) SetTestUserID ¶
func (obj *TestEmails) SetTestUserID(testUserID int)
SetTestUserID .
func (*TestEmails) SetUpdatedAt ¶
func (obj *TestEmails) SetUpdatedAt(updatedAt time.Time)
SetUpdatedAt .
func (*TestEmails) TakeChanges ¶
func (obj *TestEmails) TakeChanges() map[string]interface{}
TakeChanges .
type TestUsers ¶
type TestUsers struct { ID int `gorm:"primary_key;column:id"` CreatedAt time.Time `gorm:"column:created_at"` UpdatedAt time.Time `gorm:"column:updated_at"` DeletedAt time.Time `gorm:"column:deleted_at"` UserName string `gorm:"column:user_name"` Password string `gorm:"column:password"` Age int `gorm:"column:age"` Status int `gorm:"column:status"` // contains filtered or unexported fields }
TestUsers .
func (*TestUsers) SetCreatedAt ¶
SetCreatedAt .
func (*TestUsers) SetDeletedAt ¶
SetDeletedAt .
func (*TestUsers) SetUpdatedAt ¶
SetUpdatedAt .
func (*TestUsers) TakeChanges ¶
TakeChanges .
type User ¶
type User struct { ID int `gorm:"primary_key;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 .