ludu-cloud/admin-web/src/services/sms.js
2019-05-27 00:23:52 +08:00

55 lines
1.3 KiB
Java

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',
});
}
// 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',
});
}