2024-08-28 09:09:01 +00:00
|
|
|
package commentservicelogic
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2024-08-28 14:24:47 +00:00
|
|
|
"app-cloudep-feed-service/gen_result/pb/tweeting"
|
2024-08-28 09:09:01 +00:00
|
|
|
"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 查詢評論
|
2024-08-28 14:24:47 +00:00
|
|
|
func (l *GetCommentsLogic) GetComments(in *tweeting.GetCommentsReq) (*tweeting.GetCommentsResp, error) {
|
2024-08-28 09:09:01 +00:00
|
|
|
// todo: add your logic here and delete this line
|
|
|
|
|
2024-08-28 14:24:47 +00:00
|
|
|
return &tweeting.GetCommentsResp{}, nil
|
2024-08-28 09:09:01 +00:00
|
|
|
}
|