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 NewPostLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewNewPostLogic(ctx context.Context, svcCtx *svc.ServiceContext) *NewPostLogic { return &NewPostLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // NewPost 新增貼文 func (l *NewPostLogic) NewPost(in *tweeting.NewPostReq) (*tweeting.PostResp, error) { // todo: add your logic here and delete this line return &tweeting.PostResp{}, nil }