app-cloudep-trade-service/internal/logic/couponservice/update_coupon_logic.go

32 lines
697 B
Go

package couponservicelogic
import (
"context"
"app-cloudep-trade-service/gen_result/pb/trade"
"app-cloudep-trade-service/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type UpdateCouponLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewUpdateCouponLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateCouponLogic {
return &UpdateCouponLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// UpdateCoupon更新優惠券
func (l *UpdateCouponLogic) UpdateCoupon(in *trade.UpdateCouponReq) (*trade.CouponResp, error) {
// todo: add your logic here and delete this line
return &trade.CouponResp{}, nil
}