package postservicelogic import ( "context" "app-cloudep-feed-service/gen_result/pb/feed" "app-cloudep-feed-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 *feed.NewPostReq) (*feed.PostResp, error) { // todo: add your logic here and delete this line return &feed.PostResp{}, nil }