2019-05-26 18:17:17 +08:00
|
|
|
import { stringify } from '@/utils/request.qs';
|
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
// sign
|
|
|
|
|
|
|
|
export async function pageSign(params) {
|
|
|
|
return request(`/admin-api/admins/sms/sign/page?${stringify(params)}`, {
|
|
|
|
method: 'GET',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function addSign(params) {
|
|
|
|
return request(`/admin-api/admins/sms/sign/add?${stringify(params)}`, {
|
|
|
|
method: 'POST',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function updateSign(params) {
|
|
|
|
return request(`/admin-api/admins/sms/sign/update?${stringify(params)}`, {
|
|
|
|
method: 'PUT',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function deletedSign(params) {
|
|
|
|
return request(`/admin-api/admins/sms/sign/deleted?${stringify(params)}`, {
|
|
|
|
method: 'DELETE',
|
|
|
|
});
|
|
|
|
}
|
2019-05-27 00:23:52 +08:00
|
|
|
|
|
|
|
// template
|
|
|
|
|
|
|
|
export async function pageTemplate(params) {
|
|
|
|
return request(`/admin-api/admins/sms/template/page?${stringify(params)}`, {
|
|
|
|
method: 'GET',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function addTemplate(params) {
|
|
|
|
return request(`/admin-api/admins/sms/template/add?${stringify(params)}`, {
|
|
|
|
method: 'POST',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function updateTemplate(params) {
|
|
|
|
return request(`/admin-api/admins/sms/template/update?${stringify(params)}`, {
|
|
|
|
method: 'PUT',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function deletedTemplate(params) {
|
|
|
|
return request(`/admin-api/admins/sms/template/deleted?${stringify(params)}`, {
|
|
|
|
method: 'DELETE',
|
|
|
|
});
|
|
|
|
}
|