Documentation
¶
Index ¶
- type Category
- func (s *Category) BatchDelete(ctx context.Context, code string) error
- func (s *Category) Create(ctx context.Context, item model.Category) error
- func (s *Category) Delete(ctx context.Context, id int) error
- func (s *Category) Get(ctx context.Context, id int) (*model.Category, error)
- func (s *Category) Query(ctx context.Context, params param.CategoryParam) (*pagination.Result, error)
- func (s *Category) Update(ctx context.Context, item model.Category) error
- type Content
- func (s *Content) BatchDelete(ctx context.Context, id string) error
- func (s *Content) Create(ctx context.Context, item model.Content) error
- func (s *Content) Delete(ctx context.Context, id int) error
- func (s *Content) Get(ctx context.Context, id int) (*model.Content, error)
- func (s *Content) Query(ctx context.Context, dataScope string, params param.ContentParam) (*pagination.Result, error)
- func (s *Content) Update(ctx context.Context, item model.Content) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
Category 分类服务
func (*Category) BatchDelete ¶
BatchDelete 批量删除
func (*Category) Query ¶
func (s *Category) Query(ctx context.Context, params param.CategoryParam) (*pagination.Result, error)
Query 查询数据
Click to show internal directories.
Click to hide internal directories.