管理系统PC前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dm-manage-web/src/api/sch/school.js

44 lines
746 B

2 years ago
import request from '@/utils/request';
2 years ago
export default {
pageList(data = {}) {
return request({
2 years ago
url: '/sch/school/list',
method: 'get',
params: data
2 years ago
});
},
2 years ago
allList(data = {}) {
return request({
url: '/sch/school/all',
method: 'get',
params: data
});
},
2 years ago
getById(id) {
return request({
url: `/sch/school/${id}`,
2 years ago
method: 'get'
2 years ago
});
},
add(data = {}) {
return request({
2 years ago
url: '/sch/school',
method: 'post',
data
2 years ago
});
},
update(data = {}) {
return request({
2 years ago
url: '/sch/school',
method: 'put',
data
2 years ago
});
},
delete(id) {
return request({
url: `/sch/school/${id}`,
2 years ago
method: 'delete'
2 years ago
});
}
2 years ago
};