// ================================================================================ // 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/internal/model/dto" "context" ) type ( ICoupon interface { GetCouponList(ctx context.Context, pageNo int, pageSize int) (couponList []*dto.DtoCoupon, err error) GetCouponListTotal(ctx context.Context) (total int, err error) GetCoupon(ctx context.Context, id int) (coupon *dto.DtoCoupon, err error) DeleteCoupon(ctx context.Context, id int) (err error) } ) var ( localCoupon ICoupon ) func Coupon() ICoupon { if localCoupon == nil { panic("implement not found for interface ICoupon, forgot register?") } return localCoupon } func RegisterCoupon(i ICoupon) { localCoupon = i }