You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

9 months ago
  1. package category
  2. import (
  3. "context"
  4. v1 "xgit.pub/module/cms/app/api/category/v1"
  5. "xgit.pub/module/cms/app/service"
  6. )
  7. type sCategory struct {
  8. }
  9. func init() {
  10. Category := New()
  11. service.RegisterCategory(Category)
  12. }
  13. func New() *sCategory {
  14. return &sCategory{}
  15. }
  16. // GetTree 获取树
  17. func (s *sCategory) GetTree(ctx context.Context, req *v1.GetTreeReq) (res *v1.GetTreeRes, err error) {
  18. return
  19. }
  20. // GetList 获取列表
  21. func (s *sCategory) GetList(ctx context.Context, req *v1.GetListReq) (res *v1.GetListRes, err error) {
  22. return
  23. }
  24. // Create 创建
  25. func (s *sCategory) Create(ctx context.Context, req *v1.CreateReq) (res *v1.CreateRes, err error) {
  26. return
  27. }
  28. // Update 更新
  29. func (s *sCategory) Update(ctx context.Context, req *v1.UpdateReq) (res *v1.UpdateRes, err error) {
  30. return
  31. }
  32. // Delete 删除
  33. func (s *sCategory) Delete(ctx context.Context, req *v1.DeleteReq) (res *v1.DeleteRes, err error) {
  34. return
  35. }
  36. // BatchDelete 批量删除
  37. func (s *sCategory) BatchDelete(ctx context.Context, req *v1.BatchDeleteReq) (res *v1.BatchDeleteRes, err error) {
  38. return
  39. }