wl
2022-10-17 d46beba25ccb64a1047a98d642b6ce45e82f0bee
ycl-platform/src/main/java/com/ycl/dto/message/MessageParam.java
@@ -1,10 +1,11 @@
package com.ycl.dto.message;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ycl.api.BasePageVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
@@ -17,19 +18,26 @@
 */
@Data
@ApiModel("消息参数体")
public class MessageParam {
public class MessageParam extends BasePageVO {
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题为空")
    @NotNull(message = "标题为空")
    private String head;
    /**
     * 渠道码01-内站信02-邮件03-短信
     */
    @TableField("channel_code")
    @ApiModelProperty(value = "渠道码01-内站信02-邮件03-短信")
    @NotNull(message = "渠道码为空")
    private String channelCode;
    /**
     * 消息类型
     */
    @ApiModelProperty(value = "消息类型")
    @NotBlank(message = "消息类型为空")
    private Long messageType;
    @ApiModelProperty(value = "填充栏目编码", required = true)
    @NotNull(message = "消息类型为空")
    private Integer messageType;
    /**
     * 消息体
     */
@@ -46,7 +54,7 @@
     * 接收者
     */
    @ApiModelProperty(value = "接收者")
    @NotBlank(message = "接收者为空")
    @NotNull(message = "接收者为空")
    private String targetTo;
    /**
     * 随机码
@@ -57,7 +65,7 @@
     * 发送时间
     */
    @ApiModelProperty(value = "发送时间")
    @NotBlank(message = "发送时间为空")
    @NotNull(message = "发送时间为空")
    private String sendTime;
    /**
     * 状态0-未发布1-已发布
@@ -74,4 +82,9 @@
     */
    @ApiModelProperty(value = "创建人")
    private Long createUser;
    /**
     * 是否扫描0-未扫描1-已扫描
     */
    @ApiModelProperty(value = "是否扫描0-未扫描1-已扫描")
    private Integer isScan;
}