Documentation ¶
Overview ¶
Code generated by 'freedom new-crud'
Code generated by 'freedom new-crud'
Code generated by 'freedom new-crud'
Code generated by 'freedom new-crud'
Code generated by 'freedom new-crud'
Code generated by 'freedom new-crud'
Code generated by 'freedom new-crud'
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{}
- 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{}
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 }
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 }
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) TableName ¶
func (obj *TestEmails) TableName() string
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 }
func (*TestUsers) SetCreatedAt ¶
SetCreatedAt .
func (*TestUsers) SetDeletedAt ¶
SetDeletedAt .
func (*TestUsers) SetUpdatedAt ¶
SetUpdatedAt .
func (*TestUsers) TakeChanges ¶
TakeChanges .
Click to show internal directories.
Click to hide internal directories.