短信模板
This commit is contained in:
parent
d342e736ab
commit
4bdca32ea9
|
|
@ -2,21 +2,16 @@ package com.czg.controller.admin;
|
|||
|
||||
import com.czg.BaseQueryParam;
|
||||
import com.czg.market.dto.SmsPushEventDTO;
|
||||
import com.czg.market.dto.SmsShopTemplateDTO;
|
||||
import com.czg.market.service.SmsPushEventService;
|
||||
import com.czg.market.service.SmsShopTemplateService;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
import com.czg.validator.group.InsertGroup;
|
||||
import com.czg.validator.group.UpdateGroup;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 短信推送任务
|
||||
*
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import com.czg.validator.group.InsertGroup;
|
|||
import com.czg.validator.group.UpdateGroup;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Null;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
|
@ -33,12 +34,25 @@ public class SmsShopTemplateDTO implements Serializable {
|
|||
private Long id;
|
||||
|
||||
private Long shopId;
|
||||
/**
|
||||
* 模板名称
|
||||
*/
|
||||
@NotNull(message = "模板名称不能为空", groups = {InsertGroup.class, UpdateGroup.class})
|
||||
@Size(max = 30, message = "模板名称最大长度为30个字", groups = {InsertGroup.class, UpdateGroup.class})
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 模板内容
|
||||
*/
|
||||
@NotNull(message = "模板内容不能为空", groups = {InsertGroup.class, UpdateGroup.class})
|
||||
private Long content;
|
||||
@Size(max = 500, message = "模板内容最大长度为500个字", groups = {InsertGroup.class, UpdateGroup.class})
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 场景描述
|
||||
*/
|
||||
@Size(max = 500, message = "场景描述最大长度为500个字", groups = {InsertGroup.class, UpdateGroup.class})
|
||||
private String sceneDetail;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
|
|
|
|||
|
|
@ -46,6 +46,10 @@ public class SmsShopTemplate implements Serializable {
|
|||
* 阿里云模板code
|
||||
*/
|
||||
private String templateCode;
|
||||
/**
|
||||
* 场景描述
|
||||
*/
|
||||
private String sceneDetail;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
|
|
|
|||
Loading…
Reference in New Issue