mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
增加标注
This commit is contained in:
@@ -3,28 +3,26 @@ import ajax from './boeAjax';
|
|||||||
//const baseURL = process.env.VUE_APP_CESOURCE_BASE_API;
|
//const baseURL = process.env.VUE_APP_CESOURCE_BASE_API;
|
||||||
const baseURL ="/userbasic";
|
const baseURL ="/userbasic";
|
||||||
|
|
||||||
/**用于本地测试*/
|
/**【未使用】用于本地测试*/
|
||||||
const login = function() {
|
const login = function() {
|
||||||
return ajax.post(baseURL,'/org/userParentOrg',{});
|
return ajax.post(baseURL,'/org/userParentOrg',{});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**退出*/
|
/** 2023年6月新增加,退出接口*/
|
||||||
const logout = function() {
|
const logout = function() {
|
||||||
return ajax.postJson(baseURL,'/logout',{from:'pc'});
|
return ajax.postJson(baseURL,'/logout',{from:'pc'});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取用户的组织机构
|
* 【此接口已经不再使用】获取用户的组织机构
|
||||||
* organization_id
|
* organization_id
|
||||||
*/
|
*/
|
||||||
const userParentOrg = function() {
|
const userParentOrg = function() {
|
||||||
return ajax.post(baseURL,'/org/userParentOrg',{});
|
return ajax.post(baseURL,'/org/userParentOrg',{});
|
||||||
}
|
}
|
||||||
|
|
||||||
//https://u-pre.boe.com/userbasic/org/list
|
|
||||||
/**
|
/**
|
||||||
|
* /userbasic/org/list
|
||||||
* 根据关键字查询机构
|
* 根据关键字查询机构
|
||||||
*/
|
*/
|
||||||
const findOrgsByKeyword = function(keyword) {
|
const findOrgsByKeyword = function(keyword) {
|
||||||
@@ -32,24 +30,25 @@ const findOrgsByKeyword = function(keyword) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 此接口已经不再使用
|
* 【此接口已经不再使用】
|
||||||
*/
|
*/
|
||||||
const findOrgTreeByOrgId = function(orgId) {
|
const findOrgTreeByOrgId = function(orgId) {
|
||||||
return ajax.postJson(baseURL,'/org/childOrgs',{orgId});
|
return ajax.postJson(baseURL,'/org/childOrgs',{orgId});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 获取机构信息 */
|
||||||
const getOrgInfo = function(orgId) {
|
const getOrgInfo = function(orgId) {
|
||||||
return ajax.postJson(baseURL,'/org/info',{orgId});
|
return ajax.postJson(baseURL,'/org/info',{orgId});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**根据用户id获取用户的信息*/
|
/**【已接口已经不再使用】根据用户id获取用户的信息*/
|
||||||
const getUserInfoById = function(id) {
|
const getUserInfoById = function(id) {
|
||||||
return ajax.postJson(baseURL,'/user/list',{id});
|
return ajax.postJson(baseURL,'/user/list',{id});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* https://u-pre.boe.com/userbasic/audience/userAudiences
|
* https://u-pre.boe.com/userbasic/audience/userAudiences
|
||||||
* 获取当前用户受众信息
|
* 【当前代码中未查询到】获取当前用户受众信息
|
||||||
*/
|
*/
|
||||||
const getUserCrowds = function() {
|
const getUserCrowds = function() {
|
||||||
return ajax.postJson(baseURL,'/audience/userAudiences',{});
|
return ajax.postJson(baseURL,'/audience/userAudiences',{});
|
||||||
@@ -64,14 +63,15 @@ const getUserAudiences = function(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取hrbp数据
|
* 重要接口,获取hrbp数据,课程审核。
|
||||||
|
* 此接口中的问题,返回的机构名称,namePath要是orgId的,邮件中体现
|
||||||
*/
|
*/
|
||||||
const getOrgHrbpInfo = function(orgId) {
|
const getOrgHrbpInfo = function(orgId) {
|
||||||
return ajax.postJson(baseURL,'/org/orgHrbpInfo',{orgId});
|
return ajax.postJson(baseURL,'/org/orgHrbpInfo',{orgId});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改密码,不再使用,已转化为userbasic接口
|
* 修改密码,已转化为userbasic接口
|
||||||
* {newPassword:'',oldPassword:''}
|
* {newPassword:'',oldPassword:''}
|
||||||
*/
|
*/
|
||||||
const modifyPassword = function(data) {
|
const modifyPassword = function(data) {
|
||||||
@@ -84,6 +84,7 @@ const getInAudienceIds = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 2023年6月新增加
|
||||||
* 更新用户信息,当前只是列新三个信息,根据aid来更新
|
* 更新用户信息,当前只是列新三个信息,根据aid来更新
|
||||||
* aid
|
* aid
|
||||||
* avatar
|
* avatar
|
||||||
@@ -94,6 +95,7 @@ const updateUser = function(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 2023年6月新增加
|
||||||
* 根据用户的id集合,获取用户的姓名,工号,头像,组织机构,签名等信息
|
* 根据用户的id集合,获取用户的姓名,工号,头像,组织机构,签名等信息
|
||||||
* ids: 用户的id数组集合
|
* ids: 用户的id数组集合
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user