/*
 * @Author: lixg lixg@dongwu-inc.com
 * @Date: 2022-11-18 14:09:43
 * @LastEditors: lixg lixg@dongwu-inc.com
 * @LastEditTime: 2022-12-05 15:27:36
 * @FilePath: /fe-manage/src/api/indexProjStu.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import http from "./config";

//获取项目学员列表
export const getProjStu = (obj) => http.post('/admin/project/studentList', obj)

//删除学员
export const deleteStu = (obj) => http.post('/admin/project/deleteStudent', obj)

//获取小组列表
export const getGroupList = (obj) => http.post('/admin/project/groupList', obj)

//删除小组
export const deleteGroup = (obj) => http.delete('/admin/project/deleteGroup', { params: obj })

//新增或编辑小组
export const editGroup = (obj) => http.post('/admin/project/editGroup', obj)
//移除小组成员
export const removeGroupStudent = (obj) => http.post('/admin/project/removeGroupStudent', obj)
//查看学员
export const studentProcess = (obj) => http.get('/admin/project/studentProcess', { params: obj })
export const studentRank = (obj) => http.get('/admin/project/studentRank', { params: obj })

//是否优秀学员
export const topStudent = (obj) => http.post('/admin/project/topStudent', obj)
export const updateStudent = (obj) => http.post('/admin/student/updateStudent', obj)

//项目概览
export const overview = (obj) => http.get('/admin/project/overview', { params: obj })

//设置项目积分规则
export const setScoreRule = (obj) => http.post('/admin/project/setScoreRule', obj)

//获取学员积分明细列表
export const studentScoreList = (obj) => http.post('/admin/project/studentScoreList', obj)

//添加项目学员
export const addStudent = (obj) => http.post('/admin/project/addStudent', obj)