11 changed files with 301 additions and 65 deletions
@ -0,0 +1,98 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 保存文章内容form |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-06-02 |
|||
*/ |
|||
@Data |
|||
public class DraftContentFromDTO implements Serializable { |
|||
|
|||
|
|||
private static final long serialVersionUID = -4206020151361420221L; |
|||
/** |
|||
* 文章ID 重新编辑时必填 |
|||
*/ |
|||
private String articleId; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 草稿ID |
|||
*/ |
|||
private String draftId; |
|||
|
|||
/** |
|||
* 文章标题 |
|||
*/ |
|||
@NotBlank(message = "文章标题不能为空") |
|||
private String title; |
|||
|
|||
/** |
|||
* 内容列表 |
|||
*/ |
|||
private List<DraftContentDTO> contentList; |
|||
|
|||
@Data |
|||
public static class DraftContentDTO { |
|||
public DraftContentDTO() { |
|||
} |
|||
|
|||
/** |
|||
* 内容Id |
|||
*/ |
|||
private String draftId; |
|||
/** |
|||
* 内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 内容类型 图片:img;文字:text |
|||
*/ |
|||
private String contentType; |
|||
|
|||
/** |
|||
* 审核状态 通过:pass;失败:fail; |
|||
*/ |
|||
private String auditStatus; |
|||
|
|||
/** |
|||
* 审核理由 |
|||
*/ |
|||
private String auditReason; |
|||
|
|||
/** |
|||
* 内容顺序 从1开始 |
|||
*/ |
|||
private Integer orderNum; |
|||
} |
|||
} |
Loading…
Reference in new issue