智慧教务系统 PHP-NiuCloud框架开发
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.
 
 
 
 
 
 

58 lines
1.2 KiB

import request from '@/utils/request'
// USER_CODE_BEGIN -- zhjw_students
/**
* 获取学员管理列表
* @param params
* @returns
*/
export function getStudentsList(params: Record<string, any>) {
return request.get(`zhjw/students`, {params})
}
/**
* 获取学员管理详情
* @param id 学员管理id
* @returns
*/
export function getStudentsInfo(id: number) {
return request.get(`zhjw/students/${id}`);
}
/**
* 添加学员管理
* @param params
* @returns
*/
export function addStudents(params: Record<string, any>) {
return request.post('zhjw/students', params, { showErrorMessage: true, showSuccessMessage: true })
}
/**
* 编辑学员管理
* @param id
* @param params
* @returns
*/
export function editStudents(params: Record<string, any>) {
return request.put(`zhjw/students/${params.id}`, params, { showErrorMessage: true, showSuccessMessage: true })
}
/**
* 删除学员管理
* @param id
* @returns
*/
export function deleteStudents(id: number) {
return request.delete(`zhjw/students/${id}`, { showErrorMessage: true, showSuccessMessage: true })
}
export function getWithUsersList(params: Record<string,any>){
return request.get('zhjw/users_all', {params})
}
// USER_CODE_END -- zhjw_students