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.

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