| | |
| | | export function listSmstemplet(query) { |
| | | return request({ |
| | | url: '/smartor/smstemplet/list', |
| | | method: 'get', |
| | | params: query |
| | | method: 'post', |
| | | data: query |
| | | }) |
| | | } |
| | | |
| | |
| | | // 新增短信模板 |
| | | export function addSmstemplet(data) { |
| | | return request({ |
| | | url: '/smartor/smstemplet', |
| | | url: '/smartor/smstemplet/add', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改短信模板 |
| | | export function updateSmstemplet(data) { |
| | | return request({ |
| | | url: '/smartor/smstemplet', |
| | | method: 'put', |
| | | url: '/smartor/smstemplet/edit', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | // 删除短信模板 |
| | | export function delSmstemplet(templetid) { |
| | | return request({ |
| | | url: '/smartor/smstemplet/' + templetid, |
| | | method: 'delete' |
| | | url: '/smartor/smstemplet/remove/' + templetid, |
| | | method: 'get' |
| | | }) |
| | | } |