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.4 KiB

  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/api/v1/couponusers"
  8. "context"
  9. "database/sql"
  10. )
  11. type (
  12. ICouponUsers interface {
  13. // 根据优惠券id查看拥有优惠券的用户
  14. GetCouponUsersByCondition(ctx context.Context, couponId int, jwcode int, name string) (users []couponusers.GetCouponUsersRes, err error)
  15. // 根据jwcode,优惠券id删除用户
  16. DeleteCouponUserByJwcode(ctx context.Context, couponId int, jwcode int) (result sql.Result, err error)
  17. // 通过excel导入精网号
  18. InsertJwcodeByExcel(ctx context.Context)
  19. // 根据精网号发放用户优惠券
  20. InsertCouponUserByJwcode(ctx context.Context)
  21. // 原来的(不全)
  22. // 根据优惠券id查看拥有优惠券的用户
  23. GetCouponUsersByCondition1(ctx context.Context, couponId int, jwcode int, name string) (users []couponusers.GetCouponUsersRes, err error)
  24. }
  25. )
  26. var (
  27. localCouponUsers ICouponUsers
  28. )
  29. func CouponUsers() ICouponUsers {
  30. if localCouponUsers == nil {
  31. panic("implement not found for interface ICouponUsers, forgot register?")
  32. }
  33. return localCouponUsers
  34. }
  35. func RegisterCouponUsers(i ICouponUsers) {
  36. localCouponUsers = i
  37. }