MessageTemplateCrForm.java 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. package jnpf.base.model.messagetemplate;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import lombok.Data;
  4. import jakarta.validation.constraints.NotBlank;
  5. import java.io.Serializable;
  6. /**
  7. * 新建消息模板
  8. *
  9. * @author JNPF开发平台组
  10. * @version V3.1.0
  11. * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
  12. * @date 2021-12-09
  13. */
  14. @Data
  15. public class MessageTemplateCrForm implements Serializable {
  16. /**
  17. * 分类(数据字典)
  18. */
  19. @Schema(description = "分类")
  20. @NotBlank(message = "消息类型不能为空")
  21. private String category;
  22. /**
  23. * 模板名称
  24. */
  25. @Schema(description = "模板名称")
  26. @NotBlank(message = "模板名称不能为空")
  27. private String fullName;
  28. /**
  29. * 标题
  30. */
  31. @Schema(description = "标题")
  32. @NotBlank(message = "消息标题不能为空")
  33. private String title;
  34. /**
  35. * 是否站内信
  36. */
  37. @Schema(description = "是否站内信")
  38. private Integer isStationLetter;
  39. /**
  40. * 是否邮箱
  41. */
  42. @Schema(description = "是否邮箱")
  43. private Integer isEmail;
  44. /**
  45. * 是否企业微信
  46. */
  47. @Schema(description = "是否企业微信")
  48. private Integer isWecom;
  49. /**
  50. * 是否钉钉
  51. */
  52. @Schema(description = "是否钉钉")
  53. private Integer isDingTalk;
  54. /**
  55. * 是否短信
  56. */
  57. @Schema(description = "是否短信")
  58. private Integer isSms;
  59. /**
  60. * 短信模板ID
  61. */
  62. @Schema(description = "短信模板ID")
  63. private String smsId;
  64. /**
  65. * 模板参数JSON
  66. */
  67. @Schema(description = "模板参数JSON")
  68. private String templateJson;
  69. /**
  70. * 内容
  71. */
  72. @Schema(description = "内容")
  73. private String content;
  74. /**
  75. * 有效标志
  76. */
  77. @Schema(description = "有效标志")
  78. private Integer enabledMark;
  79. @Schema(description = "编码")
  80. private String enCode;
  81. }