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.
|
|
// ================================================================================
// 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/coupon" "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) InsertCoupon(ctx context.Context, req *coupon.InsertCouponReq) (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 }
|