// Code scaffolded by goctl. Safe to edit. // goctl 1.10.1 package post import ( "context" "sundynix-micro-go/app/plant/api/internal/svc" "sundynix-micro-go/app/plant/api/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type CreatePostLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } // 发布帖子 func NewCreatePostLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreatePostLogic { return &CreatePostLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *CreatePostLogic) CreatePost(req *types.CreatePostReq) error { // todo: add your logic here and delete this line return nil }