|
|
|
|
@ -747,6 +747,41 @@ export const oaMeetingMinutesAPI = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 自定义模型角色映射相关 API
|
|
|
|
|
*/
|
|
|
|
|
export const customModelRoleMappingAPI = {
|
|
|
|
|
// 获取角色配置
|
|
|
|
|
getRoleConfig: () => {
|
|
|
|
|
return request.get('/budget/custom-model-role-mappings/role-config')
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获取映射列表
|
|
|
|
|
getList: (params) => {
|
|
|
|
|
return request.get('/budget/custom-model-role-mappings', params)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获取映射详情
|
|
|
|
|
getDetail: (id) => {
|
|
|
|
|
return request.get(`/budget/custom-model-role-mappings/${id}`)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 创建映射
|
|
|
|
|
create: (data) => {
|
|
|
|
|
return request.post('/budget/custom-model-role-mappings', data)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 更新映射
|
|
|
|
|
update: (id, data) => {
|
|
|
|
|
return request.put(`/budget/custom-model-role-mappings/${id}`, data)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 删除映射
|
|
|
|
|
delete: (id) => {
|
|
|
|
|
return request.delete(`/budget/custom-model-role-mappings/${id}`)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 导出便捷方法(保持向后兼容)
|
|
|
|
|
export const login = authAPI.login
|
|
|
|
|
export const getInfo = authAPI.getInfo
|
|
|
|
|
|