1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import request from '@/utils/request'
- // 查询学生列表
- export function listStudent(query) {
- return request({
- url: '/sim/student/list',
- method: 'get',
- params: query
- })
- }
- // 查询学生详细
- export function getStudent(userId) {
- return request({
- url: '/sim/student/' + userId,
- method: 'get'
- })
- }
- // 新增学生
- export function addStudent(data) {
- return request({
- url: '/sim/student',
- method: 'post',
- data: data
- })
- }
- // 修改学生
- export function updateStudent(data) {
- return request({
- url: '/sim/student',
- method: 'put',
- data: data
- })
- }
- // 删除学生
- export function delStudent(userId) {
- return request({
- url: '/sim/student/' + userId,
- method: 'delete'
- })
- }
|