32 lines
694 B
Go
32 lines
694 B
Go
package postservicelogic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"app-cloudep-tweeting-service/gen_result/pb/tweeting"
|
|
"app-cloudep-tweeting-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 查詢貼文
|
|
func (l *ListPostsLogic) ListPosts(in *tweeting.QueryPostsReq) (*tweeting.ListPostsResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &tweeting.ListPostsResp{}, nil
|
|
}
|