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.
34 lines
905 B
34 lines
905 B
// ================================================================================
|
|
// 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)
|
|
}
|
|
)
|
|
|
|
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
|
|
}
|