package category import ( "context" v1 "xgit.pub/module/cms/app/api/category/v1" "xgit.pub/module/cms/app/service" ) type sCategory struct { } func init() { Category := New() service.RegisterCategory(Category) } func New() *sCategory { return &sCategory{} } // GetTree 获取树 func (s *sCategory) GetTree(ctx context.Context, req *v1.GetTreeReq) (res *v1.GetTreeRes, err error) { return } // GetList 获取列表 func (s *sCategory) GetList(ctx context.Context, req *v1.GetListReq) (res *v1.GetListRes, err error) { return } // Create 创建 func (s *sCategory) Create(ctx context.Context, req *v1.CreateReq) (res *v1.CreateRes, err error) { return } // Update 更新 func (s *sCategory) Update(ctx context.Context, req *v1.UpdateReq) (res *v1.UpdateRes, err error) { return } // Delete 删除 func (s *sCategory) Delete(ctx context.Context, req *v1.DeleteReq) (res *v1.DeleteRes, err error) { return } // BatchDelete 批量删除 func (s *sCategory) BatchDelete(ctx context.Context, req *v1.BatchDeleteReq) (res *v1.BatchDeleteRes, err error) { return }