管理系统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

49 lines
858 B

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