app-cloudep-tweeting-service/internal/logic/postservice/list_posts_logic.go

32 lines
686 B
Go
Raw Normal View History

2024-08-28 09:09:01 +00:00
package postservicelogic
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 ListPostsLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewListPostsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListPostsLogic {
return &ListPostsLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// ListPosts 查詢貼文
2024-08-28 14:24:47 +00:00
func (l *ListPostsLogic) ListPosts(in *tweeting.QueryPostsReq) (*tweeting.ListPostsResp, 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.ListPostsResp{}, nil
2024-08-28 09:09:01 +00:00
}