32 lines
753 B
Go
32 lines
753 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 RenewSubscriptionLogic struct {
|
||
|
ctx context.Context
|
||
|
svcCtx *svc.ServiceContext
|
||
|
logx.Logger
|
||
|
}
|
||
|
|
||
|
func NewRenewSubscriptionLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RenewSubscriptionLogic {
|
||
|
return &RenewSubscriptionLogic{
|
||
|
ctx: ctx,
|
||
|
svcCtx: svcCtx,
|
||
|
Logger: logx.WithContext(ctx),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// RenewSubscription 續訂訂閱
|
||
|
func (l *RenewSubscriptionLogic) RenewSubscription(in *trade.SubscriptionRenewReq) (*trade.SubscriptionResp, error) {
|
||
|
// todo: add your logic here and delete this line
|
||
|
|
||
|
return &trade.SubscriptionResp{}, nil
|
||
|
}
|