提交
This commit is contained in:
36
src/api/sch/school.js
Normal file
36
src/api/sch/school.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import request from '@/utils/request'
|
||||
export default {
|
||||
pageList(data = {}) {
|
||||
return request({
|
||||
url: "/sch/school/list",
|
||||
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",
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user