category

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryBuilder

func NewQueryBuilder() *categoryQueryBuilder

Types

type Category

type Category struct {
	Id        int32     //
	ParentId  int32     //
	Sort      int32     // 排序
	Title     string    // 名称
	Icon      string    // 图标
	Level     int32     // 分类等级
	IsUsed    int32     // 是否启用 1:是 -1:否
	CreatedAt time.Time `gorm:"time"` // 创建时间
	UpdatedAt time.Time `gorm:"time"` // 更新时间
}

Category 站分类

func NewModel

func NewModel() *Category

func (*Category) Create

func (t *Category) Create(db *gorm.DB) (id int32, err error)

Jump to

Keyboard shortcuts

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