app-cloudep-trade-service/internal/logic/subscriptionservice/update_subscription_logic.go

32 lines
767 B
Go

package subscriptionservicelogic
import (
"context"
"app-cloudep-trade-service/gen_result/pb/trade"
"app-cloudep-trade-service/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type UpdateSubscriptionLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewUpdateSubscriptionLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateSubscriptionLogic {
return &UpdateSubscriptionLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// UpdateSubscription 更新訂閱設定
func (l *UpdateSubscriptionLogic) UpdateSubscription(in *trade.SubscriptionUpdateReq) (*trade.SubscriptionResp, error) {
// todo: add your logic here and delete this line
return &trade.SubscriptionResp{}, nil
}