|
|
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import ( "CouponBackendGo/api/v1/couponusers" "context" "database/sql" "mime/multipart"
"github.com/gogf/gf/v2/net/ghttp" )
type ( ICouponUsers interface { // 根据优惠券id查看拥有优惠券的用户
GetCouponUsersByCondition(ctx context.Context, couponId int, jwcode int, name string, pageNo int, pageSize int) (users []couponusers.GetCouponUsersRes, err error) // 根据jwcode,优惠券id删除用户
DeleteCouponUserByJwcode(ctx context.Context, couponId int, jwcode int) (result sql.Result, err error) // 通过excel导入精网号, 解析并发放卡券
InsertJwcodeByExcel(ctx context.Context, file multipart.File, couponId int) (num int, num1 int, err error) // 传来jwcodes字符串,解析并发放卡券
InsertCouponUsersByJwcodeStr(ctx context.Context, jwcodeStr string, couponId int) (num int, num1 int, err error) // 根据精网号发放用户优惠券,群发 //不被controller层调用了,但不能删除
InsertCouponUsersByJwcodes(ctx context.Context, jwcodes []int, couponId int) (num int, num1 int, err error) // 导入满足条件的用户jwcode到redis //不上传到redis了,上传到数据库表,到时候直接从表里查
InsertJwcodesToRedisByExcel(file multipart.File) (err error) // 判断某用户能否抽到卡券
IsEligibleUser(ctx context.Context, jwcode int, couponIds []int) (img string, err error) // 给单个用户发放卡券
IssueCouponToUser(ctx context.Context, jwcode int, couponId int) (err error) // 导出拥有卡券的用户列表
ExportCouponUsers(r *ghttp.Request, couponId int, jwcode int, name string, pageNo int, pageSize int) // 添加用户选择武器记录
AddRecord(ctx context.Context, jwcode int, id int, name string) (err error) } )
var ( localCouponUsers ICouponUsers )
func CouponUsers() ICouponUsers { if localCouponUsers == nil { panic("implement not found for interface ICouponUsers, forgot register?") } return localCouponUsers }
func RegisterCouponUsers(i ICouponUsers) { localCouponUsers = i }
|