package com.xinelu.manage.dto.textmessage;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseEntity;
import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author : youxilong
 * @date : 2024/2/28 20:38
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "短信模板信息与适用任务类型DTO对象")
public class TextMessageTaskDTO extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 所属科室id
     */
    @ApiModelProperty(value = "所属科室id")
    @Excel(name = "所属科室id")
    private Long departmentId;

    /**
     * 所属科室名称
     */
    @ApiModelProperty(value = "所属科室名称")
    @Excel(name = "所属科室名称")
    @NotBlank(message = "所属科室名称不能为空", groups = {Insert.class, Update.class})
    private String departmentName;

    /**
     * 病种id
     */
    @ApiModelProperty(value = "病种id")
    @Excel(name = "病种id")
    private Long diseaseTypeId;

    /**
     * 病种名称
     */
    @ApiModelProperty(value = "病种名称")
    @Excel(name = "病种名称")
    private String diseaseTypeName;

    /**
     * 短信模板名称
     */
    @ApiModelProperty(value = "短信模板名称")
    @Excel(name = "短信模板名称")
    @NotBlank(message = "短信模板名称不能为空", groups = {Insert.class, Update.class})
    @Length(max = 100, message = "短信模板名称不能超过100个字符", groups = {Insert.class, Update.class})
    private String textMessageName;

    /**
     * 短信ID
     */
    @ApiModelProperty(value = "短信ID")
    @Excel(name = "短信ID")
    @NotBlank(message = "短信ID不能为空", groups = {Insert.class, Update.class})
    private String textMessageId;

    /**
     * 短信内容
     */
    @ApiModelProperty(value = "短信内容")
    @Excel(name = "短信内容")
    @NotBlank(message = "短信内容不能为空", groups = {Insert.class, Update.class})
    @Length(max = 300, message = "短信内容不能超过300个字符", groups = {Insert.class, Update.class})
    private String textMessageContent;

    /**
     * 短信通道，水滴平台：WATER_DROPLET_PLATFORM
     */
    @ApiModelProperty(value = "短信通道，水滴平台：WATER_DROPLET_PLATFORM")
    @Excel(name = "短信通道，水滴平台：WATER_DROPLET_PLATFORM")
    private String textMessageChannel;

    /**
     * 短信状态，上架：GROUNDING，下架：OFF_SHELF
     */
    @ApiModelProperty(value = "短信状态，上架：GROUNDING，下架：OFF_SHELF")
    @Excel(name = "短信状态，上架：GROUNDING，下架：OFF_SHELF")
    private String textMessageStatus;

    /**
     * 短信排序
     */
    @ApiModelProperty(value = "短信排序")
    @Excel(name = "短信排序")
    private Integer textMessageSort;

    /**
     * 短信备注
     */
    @ApiModelProperty(value = "短信备注")
    @Excel(name = "短信备注")
    private String textMessageRemark;

	/**
	 * 公共模板库id
	 */
	private Long sourceTemplateId;

    @ApiModelProperty(value = "适用任务类型字典表ids")
    private Long[] suitTaskTypeIds;

    /**
     * 短信变量，竖线隔开。来源于创建短息任务页面
     */
    private String variables;
}
