From 73a2f4d84ce3b3538f400131ac2ec86275f215b0 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 10 Apr 2021 01:39:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E7=BC=96=E5=86=99=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=9A=84=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/.env.demo1024 | 7 ++ ruoyi-ui/package.json | 1 + ruoyi-ui/src/api/system/sms/smsChannel.js | 8 ++ ruoyi-ui/src/views/system/sms/smsChannel.vue | 5 +- ruoyi-ui/src/views/system/sms/smsTemplate.vue | 81 ++++++++++++------- .../dashboard/common/pojo/CommonResult.java | 2 +- .../enums/SmsFrameworkErrorCodeConstants.java | 20 ++--- .../dict/SysDictDataController.java | 2 +- ...leVO.java => SysDictDataSimpleRespVO.java} | 4 +- .../sms/SysSmsChannelController.java | 16 +++- .../sms/SysSmsTemplateController.http | 12 +++ .../sms/SysSmsTemplateController.java | 7 ++ .../vo/channel/SysSmsChannelSimpleRespVO.java | 24 ++++++ .../vo/template/SysSmsTemplateSendReqVO.java | 21 +++++ .../convert/dict/SysDictDataConvert.java | 2 +- .../convert/sms/SysSmsChannelConvert.java | 3 + .../system/enums/SysErrorCodeConstants.java | 4 +- .../service/sms/SysSmsChannelService.java | 7 ++ .../sms/impl/SysSmsChannelServiceImpl.java | 5 ++ .../sms/impl/SysSmsTemplateServiceImpl.java | 4 +- .../resources/codegen/vue/views/index.vue.vm | 4 +- 21 files changed, 181 insertions(+), 58 deletions(-) create mode 100644 ruoyi-ui/.env.demo1024 rename src/main/java/cn/iocoder/dashboard/modules/system/controller/dict/vo/data/{SysDictDataSimpleVO.java => SysDictDataSimpleRespVO.java} (86%) create mode 100644 src/main/java/cn/iocoder/dashboard/modules/system/controller/sms/SysSmsTemplateController.http create mode 100644 src/main/java/cn/iocoder/dashboard/modules/system/controller/sms/vo/channel/SysSmsChannelSimpleRespVO.java create mode 100644 src/main/java/cn/iocoder/dashboard/modules/system/controller/sms/vo/template/SysSmsTemplateSendReqVO.java diff --git a/ruoyi-ui/.env.demo1024 b/ruoyi-ui/.env.demo1024 new file mode 100644 index 000000000..ffeadbf8c --- /dev/null +++ b/ruoyi-ui/.env.demo1024 @@ -0,0 +1,7 @@ +NODE_ENV = production + +# 测试环境配置 +ENV = 'staging' + +# 芋道管理系统/测试环境 +VUE_APP_BASE_API = 'http://127.0.0.1:48080' diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index 46718e1b0..1249d16b3 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -8,6 +8,7 @@ "dev": "vue-cli-service serve", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", + "build:demo1024": "vue-cli-service build --mode demo1024", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src" }, diff --git a/ruoyi-ui/src/api/system/sms/smsChannel.js b/ruoyi-ui/src/api/system/sms/smsChannel.js index 0b4b8c338..4e38de05f 100644 --- a/ruoyi-ui/src/api/system/sms/smsChannel.js +++ b/ruoyi-ui/src/api/system/sms/smsChannel.js @@ -42,3 +42,11 @@ export function getSmsChannelPage(query) { params: query }) } + +// 获得短信渠道精简列表 +export function getSimpleSmsChannels() { + return request({ + url: '/system/sms-channel/list-all-simple', + method: 'get', + }) +} diff --git a/ruoyi-ui/src/views/system/sms/smsChannel.vue b/ruoyi-ui/src/views/system/sms/smsChannel.vue index 5b19f6a8d..ae4b9d7f2 100644 --- a/ruoyi-ui/src/views/system/sms/smsChannel.vue +++ b/ruoyi-ui/src/views/system/sms/smsChannel.vue @@ -108,7 +108,8 @@