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

32 lines
791 B
Go
Raw Normal View History

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 ListSubscriptionsLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewListSubscriptionsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListSubscriptionsLogic {
return &ListSubscriptionsLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// ListSubscriptions 查詢所有訂閱 (用於管理和監控)
func (l *ListSubscriptionsLogic) ListSubscriptions(in *trade.ListSubscriptionsReq) (*trade.SubscriptionListResp, error) {
// todo: add your logic here and delete this line
return &trade.SubscriptionListResp{}, nil
}