po

package
v0.0.0-...-af691bc Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: GPL-2.0 Imports: 2 Imported by: 0

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

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 .

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

TableName .

func (*Admin) TakeChanges

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

TakeChanges .

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 .

func (*Albums) AddArtistID

func (obj *Albums) AddArtistID(artistID int)

AddArtistID .

func (*Albums) SetArtistID

func (obj *Albums) SetArtistID(artistID int)

SetArtistID .

func (*Albums) SetTitle

func (obj *Albums) SetTitle(title string)

SetTitle .

func (*Albums) TableName

func (obj *Albums) TableName() string

TableName .

func (*Albums) TakeChanges

func (obj *Albums) 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
}

Cart .

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

TableName .

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

func (obj *Delivery) AddAdminID(adminID int)

AddAdminID .

func (*Delivery) SetAdminID

func (obj *Delivery) SetAdminID(adminID int)

SetAdminID .

func (*Delivery) SetCreated

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

SetCreated .

func (*Delivery) SetOrderNo

func (obj *Delivery) SetOrderNo(orderNo string)

SetOrderNo .

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

TableName .

func (*Delivery) TakeChanges

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

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 .

func (*Dump) SetDump

func (obj *Dump) SetDump(dump string)

SetDump .

func (*Dump) SetName

func (obj *Dump) SetName(name string)

SetName .

func (*Dump) TableName

func (obj *Dump) TableName() string

TableName .

func (*Dump) TakeChanges

func (obj *Dump) 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"` // 库存
	Tag     string    `gorm:"column:tag"`   // 标签
	Created time.Time `gorm:"column:created"`
	Updated time.Time `gorm:"column:updated"`
	// contains filtered or unexported fields
}

Goods .

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

func (obj *Goods) SetTag(tag string)

SetTag .

func (*Goods) SetUpdated

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

SetUpdated .

func (*Goods) TableName

func (obj *Goods) TableName() string

TableName .

func (*Goods) TakeChanges

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

TakeChanges .

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 .

func (*Order) AddTotalPrice

func (obj *Order) AddTotalPrice(totalPrice int)

AddTotalPrice .

func (*Order) AddUserID

func (obj *Order) AddUserID(userID int)

AddUserID .

func (*Order) SetCreated

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

SetCreated .

func (*Order) SetOrderNo

func (obj *Order) SetOrderNo(orderNo string)

SetOrderNo .

func (*Order) SetStatus

func (obj *Order) SetStatus(status string)

SetStatus .

func (*Order) SetTotalPrice

func (obj *Order) SetTotalPrice(totalPrice int)

SetTotalPrice .

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

TableName .

func (*Order) TakeChanges

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

TakeChanges .

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

func (obj *OrderDetail) AddGoodsID(goodsID int)

AddGoodsID .

func (*OrderDetail) AddNum

func (obj *OrderDetail) AddNum(num int)

AddNum .

func (*OrderDetail) SetCreated

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

SetCreated .

func (*OrderDetail) SetGoodsID

func (obj *OrderDetail) SetGoodsID(goodsID int)

SetGoodsID .

func (*OrderDetail) SetGoodsName

func (obj *OrderDetail) SetGoodsName(goodsName string)

SetGoodsName .

func (*OrderDetail) SetNum

func (obj *OrderDetail) SetNum(num int)

SetNum .

func (*OrderDetail) SetOrderNo

func (obj *OrderDetail) SetOrderNo(orderNo string)

SetOrderNo .

func (*OrderDetail) SetUpdated

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

SetUpdated .

func (*OrderDetail) TableName

func (obj *OrderDetail) TableName() string

TableName .

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

func (obj *OrderLog) AddOrderID(orderID int)

AddOrderID .

func (*OrderLog) SetDesc

func (obj *OrderLog) SetDesc(desc string)

SetDesc .

func (*OrderLog) SetOrderID

func (obj *OrderLog) SetOrderID(orderID int)

SetOrderID .

func (*OrderLog) TableName

func (obj *OrderLog) TableName() string

TableName .

func (*OrderLog) TakeChanges

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

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

func (obj *Product) AddPrice(price int)

AddPrice .

func (*Product) AddTest

func (obj *Product) AddTest(test int)

AddTest .

func (*Product) SetDesc

func (obj *Product) SetDesc(desc string)

SetDesc .

func (*Product) SetPrice

func (obj *Product) SetPrice(price int)

SetPrice .

func (*Product) SetTest

func (obj *Product) SetTest(test int)

SetTest .

func (*Product) TableName

func (obj *Product) TableName() string

TableName .

func (*Product) TakeChanges

func (obj *Product) 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
}

TestEmails .

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

TableName .

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

TableName .

func (*TestUsers) TakeChanges

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

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 .

func (*User) AddMoney

func (obj *User) AddMoney(money int)

AddMoney .

func (*User) SetCreated

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

SetCreated .

func (*User) SetMoney

func (obj *User) SetMoney(money int)

SetMoney .

func (*User) SetName

func (obj *User) SetName(name string)

SetName .

func (*User) SetPassword

func (obj *User) SetPassword(password string)

SetPassword .

func (*User) SetUpdated

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

SetUpdated .

func (*User) TableName

func (obj *User) TableName() string

TableName .

func (*User) TakeChanges

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

TakeChanges .

Jump to

Keyboard shortcuts

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