Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCategoryData ¶
type CreateCategoryData struct { Pid int64 // 父类ID Name string // 分类名称 Icon string // 图标库 https://lineicons.com/icons/ Level int64 }
type SearchData ¶
type SearchData struct {
Pid int32 // 父类ID
}
type Service ¶
type Service interface { List(ctx core.Context) (categories []*model.Category, err error) Tree(ctx core.Context) (nodes []*TreeNode, err error) Create(ctx core.Context, siteData *CreateCategoryData) (err error) Modify(ctx core.Context, id int64, updateCategory *UpdateCategory) (err error) Delete(ctx core.Context, id int64) error Detail(ctx core.Context, id int64) (category *model.Category, err error) UpdateUsed(ctx core.Context, id, used int64) (err error) UpdateSort(ctx core.Context, id, sort int64) (err error) // contains filtered or unexported methods }
type UpdateCategory ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.