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.

49 lines
1.0 KiB

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