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
961 B

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. "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. DeleteCoupon(ctx context.Context, id int) (err error)
  16. }
  17. )
  18. var (
  19. localCoupon ICoupon
  20. )
  21. func Coupon() ICoupon {
  22. if localCoupon == nil {
  23. panic("implement not found for interface ICoupon, forgot register?")
  24. }
  25. return localCoupon
  26. }
  27. func RegisterCoupon(i ICoupon) {
  28. localCoupon = i
  29. }