diff --git a/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/SmsService.java b/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/SmsService.java index 9e653106a..dfc2af7bc 100644 --- a/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/SmsService.java +++ b/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/SmsService.java @@ -1,7 +1,11 @@ package cn.iocoder.mall.admin.api; import cn.iocoder.mall.admin.api.bo.sms.SmsSignBO; +import cn.iocoder.mall.admin.api.bo.sms.PageSmsSignBO; import cn.iocoder.mall.admin.api.bo.sms.SmsTemplateBO; +import cn.iocoder.mall.admin.api.bo.sms.PageSmsTemplateBO; +import cn.iocoder.mall.admin.api.dto.sms.PageQuerySmsSignDTO; +import cn.iocoder.mall.admin.api.dto.sms.PageQuerySmsTemplateDTO; import java.util.List; @@ -13,7 +17,21 @@ import java.util.List; */ public interface SmsService { + /** + * 短信模板 - 分页 + * + * @param queryDTO + * @return + */ + PageSmsSignBO pageSmsSign(PageQuerySmsSignDTO queryDTO); + /** + * 短信模板 - 分页 + * + * @param queryDTO + * @return + */ + PageSmsTemplateBO pageSmsTemplate(PageQuerySmsTemplateDTO queryDTO); /** * 签名 - 创建 diff --git a/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/bo/sms/PageSmsSignBO.java b/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/bo/sms/PageSmsSignBO.java new file mode 100644 index 000000000..65409b84e --- /dev/null +++ b/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/bo/sms/PageSmsSignBO.java @@ -0,0 +1,57 @@ +package cn.iocoder.mall.admin.api.bo.sms; + +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.util.List; + +/** + * sms page + * + * @author Sin + * @time 2019/5/19 4:23 PM + */ +@Data +@Accessors(chain = true) +public class PageSmsSignBO { + + private Integer count; + + private Long current; + + private Long size; + + private Long total; + + private List data; + + @Data + @Accessors(chain = true) + public class Sign { + /** + * 编号 + */ + private Integer id; + /** + * 签名id 这个是第三方的 + */ + private String platformId; + /** + * 签名名称 + */ + private String sign; + /** + * 审核状态 + * + * - 1、审核中 + * - 2、审核成功 + * - 3、审核失败 + */ + private Integer applyStatus; + /** + * 审核信息 + */ + private String applyMessage; + } +} diff --git a/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/bo/sms/PageSmsTemplateBO.java b/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/bo/sms/PageSmsTemplateBO.java new file mode 100644 index 000000000..c67bbdf99 --- /dev/null +++ b/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/bo/sms/PageSmsTemplateBO.java @@ -0,0 +1,95 @@ +package cn.iocoder.mall.admin.api.bo.sms; + +import lombok.Data; +import lombok.experimental.Accessors; + +import java.util.List; + +/** + * sms page + * + * @author Sin + * @time 2019/5/19 4:23 PM + */ +@Data +@Accessors(chain = true) +public class PageSmsTemplateBO { + + private Long total; + + private Long current; + + private Long size; + + private List