123456789101112131415161718192021222324252627282930313233343536373839 |
- import axios from 'axios';
- export function getUserList(grade,username) {
- return axios.get('/user/listStudent',{
- params: {
- grade: grade,
- username: username
- }
- })
- .then(res => res.data);
- }
- export function addUser(user) {
- return axios({
- method: 'post',
- url: '/user/addStudent',
- data: user
- }).then(res => res.data)
- }
- export function updateUser(user) {
- return axios({
- method: 'post',
- url: '/user/updatePassword',
- data: user
- }).then(res => res.data)
- }
- export function deleteUser(uid) {
- return axios({
- method: 'post',
- url: '/user/deleteStudent',
- params: {uid: uid}
- }).then(res => res)
- }
|