多模块重构 12:修改项目名字,按照新的规则
This commit is contained in:
52
yudao-ui-admin/src/api/system/sms/smsChannel.js
Normal file
52
yudao-ui-admin/src/api/system/sms/smsChannel.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建短信渠道
|
||||
export function createSmsChannel(data) {
|
||||
return request({
|
||||
url: '/system/sms-channel/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新短信渠道
|
||||
export function updateSmsChannel(data) {
|
||||
return request({
|
||||
url: '/system/sms-channel/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除短信渠道
|
||||
export function deleteSmsChannel(id) {
|
||||
return request({
|
||||
url: '/system/sms-channel/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得短信渠道
|
||||
export function getSmsChannel(id) {
|
||||
return request({
|
||||
url: '/system/sms-channel/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得短信渠道分页
|
||||
export function getSmsChannelPage(query) {
|
||||
return request({
|
||||
url: '/system/sms-channel/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得短信渠道精简列表
|
||||
export function getSimpleSmsChannels() {
|
||||
return request({
|
||||
url: '/system/sms-channel/list-all-simple',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
20
yudao-ui-admin/src/api/system/sms/smsLog.js
Normal file
20
yudao-ui-admin/src/api/system/sms/smsLog.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获得短信日志分页
|
||||
export function getSmsLogPage(query) {
|
||||
return request({
|
||||
url: '/system/sms-log/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出短信日志 Excel
|
||||
export function exportSmsLogExcel(query) {
|
||||
return request({
|
||||
url: '/system/sms-log/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
64
yudao-ui-admin/src/api/system/sms/smsTemplate.js
Normal file
64
yudao-ui-admin/src/api/system/sms/smsTemplate.js
Normal file
@@ -0,0 +1,64 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建短信模板
|
||||
export function createSmsTemplate(data) {
|
||||
return request({
|
||||
url: '/system/sms-template/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新短信模板
|
||||
export function updateSmsTemplate(data) {
|
||||
return request({
|
||||
url: '/system/sms-template/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除短信模板
|
||||
export function deleteSmsTemplate(id) {
|
||||
return request({
|
||||
url: '/system/sms-template/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得短信模板
|
||||
export function getSmsTemplate(id) {
|
||||
return request({
|
||||
url: '/system/sms-template/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得短信模板分页
|
||||
export function getSmsTemplatePage(query) {
|
||||
return request({
|
||||
url: '/system/sms-template/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 创建短信模板
|
||||
export function sendSms(data) {
|
||||
return request({
|
||||
url: '/system/sms-template/send-sms',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出短信模板 Excel
|
||||
export function exportSmsTemplateExcel(query) {
|
||||
return request({
|
||||
url: '/system/sms-template/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user