weizong song 7 months ago
parent b6acc471e2
commit ad6876d72f

@ -168,3 +168,4 @@ budget_template_elements (元素表)

@ -318,3 +318,4 @@ const formatDefaultValue = (value) => {
</style>

@ -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

Loading…
Cancel
Save