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.

43 lines
1.2 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. // ================================================================================
  2. // Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
  3. // You can delete these comments if you wish manually maintain this interface file.
  4. // ================================================================================
  5. package service
  6. import (
  7. "context"
  8. v1 "xgit.pub/module/cms/app/api/video/v1"
  9. )
  10. type (
  11. IVideo interface {
  12. GetList(ctx context.Context, req *v1.GetListReq) (res *v1.GetListRes, err error)
  13. // Create 创建
  14. Create(ctx context.Context, req *v1.CreateReq) (res *v1.CreateRes, err error)
  15. // Update 更新
  16. Update(ctx context.Context, req *v1.UpdateReq) (err error)
  17. // Delete 删除
  18. Delete(ctx context.Context, req *v1.DeleteReq) (err error)
  19. // BatchDelete 批量删除
  20. BatchDelete(ctx context.Context, req *v1.BatchDeleteReq) (err error)
  21. // Get 获取
  22. Get(ctx context.Context, req *v1.GetReq) (res *v1.GetRes, err error)
  23. }
  24. )
  25. var (
  26. localVideo IVideo
  27. )
  28. func Video() IVideo {
  29. if localVideo == nil {
  30. panic("implement not found for interface IVideo, forgot register?")
  31. }
  32. return localVideo
  33. }
  34. func RegisterVideo(i IVideo) {
  35. localVideo = i
  36. }