32 lines
692 B
Go
32 lines
692 B
Go
package commentservicelogic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"app-cloudep-feed-service/gen_result/pb/feed"
|
|
"app-cloudep-feed-service/internal/svc"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type GetCommentsLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewGetCommentsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCommentsLogic {
|
|
return &GetCommentsLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
// GetComments 查詢評論
|
|
func (l *GetCommentsLogic) GetComments(in *feed.GetCommentsReq) (*feed.GetCommentsResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &feed.GetCommentsResp{}, nil
|
|
}
|