jeecgBootUniapp/src/api/system/user.ts

45 lines
887 B
Vue
Raw Normal View History

2025-05-09 01:42:19 +00:00
import { http } from '@/utils/http';
/**
* 根据用户名获取职务名称
* @param username 用户名
* @returns 职务名称
*/
export function queryPostByUserIdApi(userid : string) {
return http({
url: '/sys/user/queryPostByUserId',
method: 'GET',
data: { userid }
2025-05-09 01:42:19 +00:00
});
}
/**
* 修改用户信息
* @param config 用户信息
* @returns
*/
2025-05-23 10:09:19 +00:00
export function editUserApi(config : object) {
2025-05-09 01:42:19 +00:00
return http({
url: '/sys/user/appEdit',
method: 'PUT',
data: config
});
2025-05-23 10:09:19 +00:00
}
/*根据部门Cod和角色Id查询用户信息*/
export function queryUserByOrgRoleApi(config : object) {
2025-05-23 10:09:19 +00:00
return http({
2025-09-23 08:47:27 +00:00
url: '/sys/user/queryByDepCodRoleId',
2025-05-23 10:09:19 +00:00
method: 'GET',
data: config
})
}
/*根据劳动合同号查询用户信息*/
export function queryUsernameByLdhth(ldhth : string) {
return http({
url: '/sys/user/queryUsernameByLdhth',
method: 'GET',
data: { ldhth }
})
2025-05-09 01:42:19 +00:00
}