package timelineservicelogic import ( "context" "app-cloudep-tweeting-service/gen_result/pb/tweeting" "app-cloudep-tweeting-service/internal/svc" "github.com/zeromicro/go-zero/core/logx" ) type AddPostToTimelineLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewAddPostToTimelineLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddPostToTimelineLogic { return &AddPostToTimelineLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // AddPostToTimeline 加入貼文,只管一股腦全塞,這裡會自動判斷 func (l *AddPostToTimelineLogic) AddPostToTimeline(in *tweeting.GetTimelineReq) (*tweeting.OKResp, error) { // todo: add your logic here and delete this line return &tweeting.OKResp{}, nil }