serv\web- 多租户修改

This commit is contained in:
2025-10-29 19:08:22 +08:00
parent c5c134fbb3
commit 82b6f14e64
86 changed files with 4446 additions and 2730 deletions

View File

@@ -83,11 +83,11 @@ export const learningTaskApi = {
},
/**
* 发布学习任务
* 发布\下架学习任务
* @param taskID 任务ID
* @returns Promise<ResultDomain<LearningTask>>
*/
async publishTask(task: LearningTask): Promise<ResultDomain<LearningTask>> {
async changeTaskStatus(task: LearningTask): Promise<ResultDomain<LearningTask>> {
const response = await api.put<LearningTask>(`${this.learningTaskPrefix}/status`, task);
return response.data;
},

View File

@@ -96,13 +96,13 @@ export const deptApi = {
/**
* @description 查询部门角色列表
* @param dept 部门角色信息
* @param deptRole 部门角色信息
* @returns Promise<ResultDomain<SysDeptRole>> 部门角色列表
* @author yslg
* @ since 2025-10-06
*/
async getDeptRoleList(dept: SysDeptRole): Promise<ResultDomain<SysDeptRole>> {
const response = await api.post<SysDeptRole>('/depts/role/list', dept);
async getDeptRoleList(deptRole: SysDeptRole): Promise<ResultDomain<SysDeptRole>> {
const response = await api.post<SysDeptRole>('/depts/role/list', deptRole);
return response.data;
},

View File

@@ -97,8 +97,8 @@ export const userApi = {
* @param user 用户信息
* @returns Promise<ResultDomain<SysUserDeptRole>>
*/
async getUserDeptRole(user: SysUserDeptRole): Promise<ResultDomain<SysUserDeptRole>> {
const response = await api.post<SysUserDeptRole>('/users/bind/deptrole/list', user);
async getUserDeptRole(user: UserDeptRoleVO): Promise<ResultDomain<UserDeptRoleVO>> {
const response = await api.post<UserDeptRoleVO>('/users/bind/deptrole/list', user);
return response.data;
},