From ee5eaccf2791ec21d1c28dd5a419e87fb2c0d221 Mon Sep 17 00:00:00 2001 From: sin Date: Sun, 19 May 2019 17:05:40 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=B7=BB=E5=8A=A0=20sign=20=E5=92=8C=20tem?= =?UTF-8?q?plate=20page=20=E5=92=8C=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/iocoder/mall/admin/api/SmsService.java | 18 ++++ .../mall/admin/api/bo/sms/PageSmsSignBO.java | 57 +++++++++++ .../admin/api/bo/sms/PageSmsTemplateBO.java | 95 +++++++++++++++++++ .../mall/admin/api/bo/sms/SmsPage.java | 53 ----------- .../api/dto/sms/PageQuerySmsSignDTO.java | 25 +++++ .../api/dto/sms/PageQuerySmsTemplateDTO.java | 30 ++++++ .../mall/admin/convert/SmsSignConvert.java | 6 ++ .../admin/convert/SmsTemplateConvert.java | 6 ++ .../mall/admin/dataobject/SmsSignDO.java | 2 - .../mall/admin/service/SmsServiceImpl.java | 61 ++++++++++++ 10 files changed, 298 insertions(+), 55 deletions(-) create mode 100644 system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/bo/sms/PageSmsSignBO.java create mode 100644 system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/bo/sms/PageSmsTemplateBO.java delete mode 100644 system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/bo/sms/SmsPage.java create mode 100644 system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/dto/sms/PageQuerySmsSignDTO.java create mode 100644 system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/dto/sms/PageQuerySmsTemplateDTO.java 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