category

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 Category

type Category struct {
	ID        int64  `gorm:"column:id;primaryKey"`
	Code      string `gorm:"column:code"`          //类目编码
	Parent    string `gorm:"column:parent"`        //父类编码
	Name      string `gorm:"column:name"`          //类目名称
	Level     int    `gorm:"column:level"`         //类目层级
	State     int    `gorm:"column:state"`         //类目状态
	DeletedAt int64  `gorm:"column:deleted_at"`    //删除时间
	CreatedAt string `gorm:"column:created_at;->"` //创建时间
	UpdatedAt string `gorm:"column:updated_at;->"` //更新时间
}

func GetCategoryByCode

func GetCategoryByCode(code string) (obj *Category, err error)

func (*Category) TableName

func (p *Category) TableName() string

Jump to

Keyboard shortcuts

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