新增权限:实现管理员账户绑定流程

This commit is contained in:
wangzhibiao committed 2026-09-16 09:59:01 +08:00
1 parent d8a963f611
commit d00d039ef5
27 files changed
+1946 -26

No files matched your search

+26
View File
@@ -25,3 +25,29 @@ export function addStudent(data) {
data: data
})
}
// 查询可关联学员的系统用户候选列表
export function getStudentBindableUsers(keyword) {
return request({
url: '/train/student/bindable-users',
method: 'get',
params: { keyword }
})
}
// 为学员关联系统用户账号
export function bindStudentUser(sId, userId) {
return request({
url: '/train/student/' + sId + '/user-binding',
method: 'put',
data: { userId }
})
}
// 为学员解除系统用户账号关联
export function unbindStudentUser(sId) {
return request({
url: '/train/student/' + sId + '/user-binding',
method: 'delete'
})
}
+26
View File
@@ -34,3 +34,29 @@ export function updateTeacher(data) {
data: data
})
}
// 查询可关联教师的系统用户候选列表
export function getTeacherBindableUsers(keyword) {
return request({
url: '/train/teacher/bindable-users',
method: 'get',
params: { keyword }
})
}
// 为教师关联系统用户账号
export function bindTeacherUser(tId, userId) {
return request({
url: '/train/teacher/' + tId + '/user-binding',
method: 'put',
data: { userId }
})
}
// 为教师解除系统用户账号关联
export function unbindTeacherUser(tId) {
return request({
url: '/train/teacher/' + tId + '/user-binding',
method: 'delete'
})
}