package postservicelogic import ( "context" "app-cloudep-feed-service/gen_result/pb/tweeting" "app-cloudep-feed-service/internal/svc" "github.com/zeromicro/go-zero/core/logx" ) type UpdatePostLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewUpdatePostLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdatePostLogic { return &UpdatePostLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // UpdatePost 更新貼文 func (l *UpdatePostLogic) UpdatePost(in *tweeting.UpdatePostReq) (*tweeting.OKResp, error) { // todo: add your logic here and delete this line return &tweeting.OKResp{}, nil }