object

package
v1.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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

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
}

func (*Admin) SetCreated

func (obj *Admin) SetCreated(created time.Time)

SetCreated .

func (*Admin) SetName

func (obj *Admin) SetName(name string)

SetName .

func (*Admin) SetUpdated

func (obj *Admin) SetUpdated(updated time.Time)

SetUpdated .

func (*Admin) TableName

func (obj *Admin) TableName() string

func (*Admin) TakeChanges

func (obj *Admin) TakeChanges() map[string]interface{}

TakeChanges .

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
}

func (*Cart) AddGoodsId

func (obj *Cart) AddGoodsId(goodsId int)

AddGoodsId .

func (*Cart) AddNum

func (obj *Cart) AddNum(num int)

AddNum .

func (*Cart) AddUserId

func (obj *Cart) AddUserId(userId int)

AddUserId .

func (*Cart) SetCreated

func (obj *Cart) SetCreated(created time.Time)

SetCreated .

func (*Cart) SetGoodsId

func (obj *Cart) SetGoodsId(goodsId int)

SetGoodsId .

func (*Cart) SetNum

func (obj *Cart) SetNum(num int)

SetNum .

func (*Cart) SetUpdated

func (obj *Cart) SetUpdated(updated time.Time)

SetUpdated .

func (*Cart) SetUserId

func (obj *Cart) SetUserId(userId int)

SetUserId .

func (*Cart) TableName

func (obj *Cart) TableName() string

func (*Cart) TakeChanges

func (obj *Cart) TakeChanges() map[string]interface{}

TakeChanges .

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) AddAdminId

func (obj *Delivery) AddAdminId(adminId int)

AddAdminId .

func (*Delivery) AddOrderId

func (obj *Delivery) AddOrderId(orderId int)

AddOrderId .

func (*Delivery) SetAdminId

func (obj *Delivery) SetAdminId(adminId int)

SetAdminId .

func (*Delivery) SetCreated

func (obj *Delivery) SetCreated(created time.Time)

SetCreated .

func (*Delivery) SetOrderId

func (obj *Delivery) SetOrderId(orderId int)

SetOrderId .

func (*Delivery) SetTrackingNumber

func (obj *Delivery) SetTrackingNumber(trackingNumber string)

SetTrackingNumber .

func (*Delivery) SetUpdated

func (obj *Delivery) SetUpdated(updated time.Time)

SetUpdated .

func (*Delivery) TableName

func (obj *Delivery) TableName() string

func (*Delivery) TakeChanges

func (obj *Delivery) TakeChanges() map[string]interface{}

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
}

func (*Goods) AddPrice

func (obj *Goods) AddPrice(price int)

AddPrice .

func (*Goods) AddStock

func (obj *Goods) AddStock(stock int)

AddStock .

func (*Goods) SetCreated

func (obj *Goods) SetCreated(created time.Time)

SetCreated .

func (*Goods) SetName

func (obj *Goods) SetName(name string)

SetName .

func (*Goods) SetPrice

func (obj *Goods) SetPrice(price int)

SetPrice .

func (*Goods) SetStock

func (obj *Goods) SetStock(stock int)

SetStock .

func (*Goods) SetUpdated

func (obj *Goods) SetUpdated(updated time.Time)

SetUpdated .

func (*Goods) TableName

func (obj *Goods) TableName() string

func (*Goods) TakeChanges

func (obj *Goods) TakeChanges() map[string]interface{}

TakeChanges .

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
}

func (*Order) AddGoodsId

func (obj *Order) AddGoodsId(goodsId int)

AddGoodsId .

func (*Order) AddNum

func (obj *Order) AddNum(num int)

AddNum .

func (*Order) AddUserId

func (obj *Order) AddUserId(userId int)

AddUserId .

func (*Order) SetCreated

func (obj *Order) SetCreated(created time.Time)

SetCreated .

func (*Order) SetGoodsId

func (obj *Order) SetGoodsId(goodsId int)

SetGoodsId .

func (*Order) SetNum

func (obj *Order) SetNum(num int)

SetNum .

func (*Order) SetUpdated

func (obj *Order) SetUpdated(updated time.Time)

SetUpdated .

func (*Order) SetUserId

func (obj *Order) SetUserId(userId int)

SetUserId .

func (*Order) TableName

func (obj *Order) TableName() string

func (*Order) TakeChanges

func (obj *Order) TakeChanges() map[string]interface{}

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
}

func (*TestEmails) AddSubscribed

func (obj *TestEmails) AddSubscribed(subscribed int)

AddSubscribed .

func (*TestEmails) AddTestUserId

func (obj *TestEmails) AddTestUserId(testUserId int)

AddTestUserId .

func (*TestEmails) AddTypeId

func (obj *TestEmails) AddTypeId(typeId int)

AddTypeId .

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) SetTypeId

func (obj *TestEmails) SetTypeId(typeId int)

SetTypeId .

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) AddAge

func (obj *TestUsers) AddAge(age int)

AddAge .

func (*TestUsers) AddStatus

func (obj *TestUsers) AddStatus(status int)

AddStatus .

func (*TestUsers) SetAge

func (obj *TestUsers) SetAge(age int)

SetAge .

func (*TestUsers) SetCreatedAt

func (obj *TestUsers) SetCreatedAt(createdAt time.Time)

SetCreatedAt .

func (*TestUsers) SetDeletedAt

func (obj *TestUsers) SetDeletedAt(deletedAt time.Time)

SetDeletedAt .

func (*TestUsers) SetPassword

func (obj *TestUsers) SetPassword(password string)

SetPassword .

func (*TestUsers) SetStatus

func (obj *TestUsers) SetStatus(status int)

SetStatus .

func (*TestUsers) SetUpdatedAt

func (obj *TestUsers) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt .

func (*TestUsers) SetUserName

func (obj *TestUsers) SetUserName(userName string)

SetUserName .

func (*TestUsers) TableName

func (obj *TestUsers) TableName() string

func (*TestUsers) TakeChanges

func (obj *TestUsers) TakeChanges() map[string]interface{}

TakeChanges .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL