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.

34 lines
905 B

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. "CouponBackendGo/internal/model/dto"
  8. "context"
  9. )
  10. type (
  11. ICoupon interface {
  12. GetCouponList(ctx context.Context, pageNo int, pageSize int) (couponList []*dto.DtoCoupon, err error)
  13. GetCouponListTotal(ctx context.Context) (total int, err error)
  14. GetCoupon(ctx context.Context, id int) (coupon *dto.DtoCoupon, err error)
  15. }
  16. )
  17. var (
  18. localCoupon ICoupon
  19. )
  20. func Coupon() ICoupon {
  21. if localCoupon == nil {
  22. panic("implement not found for interface ICoupon, forgot register?")
  23. }
  24. return localCoupon
  25. }
  26. func RegisterCoupon(i ICoupon) {
  27. localCoupon = i
  28. }