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.

35 lines
870 B

6 months ago
6 months ago
6 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. "MangheGo/api/v1/prize"
  8. "MangheGo/internal/model/entity"
  9. "context"
  10. )
  11. type (
  12. IPrize interface {
  13. GetPrizeList(ctx context.Context) (prizeList []*entity.Prize, err error)
  14. EditPrize(ctx context.Context, req *prize.EditPrizeReq) (err error)
  15. DeletePrize(ctx context.Context, id int) (err error)
  16. }
  17. )
  18. var (
  19. localPrize IPrize
  20. )
  21. func Prize() IPrize {
  22. if localPrize == nil {
  23. panic("implement not found for interface IPrize, forgot register?")
  24. }
  25. return localPrize
  26. }
  27. func RegisterPrize(i IPrize) {
  28. localPrize = i
  29. }