package com.xinelu.manage.dto.wechattemplate;

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 21:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "微信模板信息与适用任务类型DTO对象")
public class WechatTemplateTaskDTO extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    private Long id;

    /**
     * 所属科室id
     */
    @ApiModelProperty(value = "所属科室id")
    @Excel(name = "所属科室id")
    @NotBlank(message = "科室id不能为空", groups = {Insert.class, Update.class})
    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 = 50, message = "微信模板名称不能超过50个字符", groups = {Insert.class, Update.class})
    private String wechatTemplateName;

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

    /**
     * 模板内容
     */
    @ApiModelProperty(value = "模板内容")
    @Excel(name = "模板内容")
    @Length(max = 300, message = "模板内容不能超过300个字符", groups = {Insert.class, Update.class})
    private String templateContent;

    /**
     * 模板来源，小程序：WE_CHAT_APPLET，公众号：WE_CHAT_OFFICIAL_ACCOUNT
     */
    @ApiModelProperty(value = "模板来源，小程序：WE_CHAT_APPLET，公众号：WE_CHAT_OFFICIAL_ACCOUNT")
    @Excel(name = "模板来源，小程序：WE_CHAT_APPLET，公众号：WE_CHAT_OFFICIAL_ACCOUNT")
    @NotBlank(message = "模板来源不能为空", groups = {Insert.class, Update.class})
    private String templateSource;

    /**
     * 模板顺序
     */
    @ApiModelProperty(value = "模板顺序")
    @Excel(name = "模板顺序")
    private Integer templateSort;

    /**
     * 模板备注
     */
    @ApiModelProperty(value = "模板备注")
    @Excel(name = "模板备注")
    private String templateRemark;

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

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