brand

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brand

type Brand struct {
	ID        int64  `gorm:"column:id;primaryKey"`
	Code      string `gorm:"column:code"`          //品牌编码
	Name      string `gorm:"column:name"`          //品牌名称
	EnAbbr    string `gorm:"column:en_abbr"`       //英语名称
	CnAbbr    string `gorm:"column:cn_abbr"`       //中午名称
	Website   string `gorm:"column:website"`       //官方网址
	State     int64  `gorm:"column:state"`         //品牌状态
	DeletedAt int64  `gorm:"column:deleted_at"`    //删除时间
	CreatedAt string `gorm:"column:created_at;->"` //创建时间
	UpdatedAt string `gorm:"column:updated_at;->"` //更新时间
	OldId     int64  `gorm:"column:old_id"`        //历史ID
}

func Find

func Find(id int64) (obj *Brand, err error)

func GetOne

func GetOne(code string) (obj *Brand, err error)

func GetOneByOld

func GetOneByOld(id int64) (obj *Brand, err error)

func (*Brand) Create

func (p *Brand) Create() error

func (*Brand) TableName

func (p *Brand) TableName() string

Jump to

Keyboard shortcuts

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