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