forked from qiushanhe/dm-manage-web
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.
52 lines
885 B
52 lines
885 B
2 years ago
|
/*
|
||
|
* @Author: riverQiu
|
||
|
* @Date: 2023-10-07 17:14:32
|
||
|
* @LastEditors: riverQiu
|
||
|
* @LastEditTime: 2023-10-07 18:02:01
|
||
|
* @Description:教练接口
|
||
|
*/
|
||
|
import request from '@/utils/request';
|
||
|
|
||
|
// 查询教练列表
|
||
|
export function listCoach(query) {
|
||
|
return request({
|
||
|
url: '/sch/coach/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 查询教练详细
|
||
|
export function getCoach(coachId) {
|
||
|
return request({
|
||
|
url: '/sch/coach/' + coachId,
|
||
|
method: 'get'
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 新增教练
|
||
|
export function addCoach(data) {
|
||
|
return request({
|
||
|
url: '/sch/coach',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 修改教练
|
||
|
export function updateCoach(data) {
|
||
|
return request({
|
||
|
url: '/sch/coach',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 删除教练
|
||
|
export function delCoach(coachId) {
|
||
|
return request({
|
||
|
url: '/sch/coach/' + coachId,
|
||
|
method: 'delete'
|
||
|
});
|
||
|
}
|