mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 22:06:43 +08:00
新增加二期的api配置,
This commit is contained in:
15
src/api/boe/HRBP.js
Normal file
15
src/api/boe/HRBP.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import ajax from '@/api/boe/boeApiAjax.js'
|
||||
|
||||
/**
|
||||
* 获取课程审核的 HRBP 审核 人信息
|
||||
* 机构的id
|
||||
* organization_id
|
||||
*/
|
||||
const getHRBP = function(orgId) {
|
||||
return ajax.get('/b1/system/user/org-hrbp?organization_id='+orgId);
|
||||
}
|
||||
|
||||
|
||||
export default {
|
||||
getHRBP
|
||||
}
|
||||
63
src/api/phase2/stat.js
Normal file
63
src/api/phase2/stat.js
Normal file
@@ -0,0 +1,63 @@
|
||||
/**文章模块的相关处理*/
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
/**
|
||||
* 发送事件,具体事件参考后台管理的事件查看
|
||||
*参数如下:
|
||||
{
|
||||
"key": "ReadCase",//后台的事件key
|
||||
"title": "浏览案例【案例名称】",//事件的标题
|
||||
"parameters":"",//用户自定义参数 name:value,name:value
|
||||
"content": "案例名称",//事件的内容
|
||||
"objId": "案例id",//关联的id
|
||||
"objType": "3",//关联的类型
|
||||
"objInfo": "记录一般折内容部分",
|
||||
"aid": "用户的id", //当前登录人的id
|
||||
"aname": "用户的名称,用于显示",//当前人的姓名
|
||||
"status": 1 //状态,直接写1
|
||||
}
|
||||
*
|
||||
*/
|
||||
const sendEvent = function(data) {
|
||||
return ajax.get('/xboe/m/stat/event/send');
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户的统计信息
|
||||
* @param {Object} aid 主页人的id
|
||||
* @param {Object} data 参数 []数组,10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数,空数组 返回用户的全部类型统计。
|
||||
*/
|
||||
const userTotal = function(aid,data) {
|
||||
return ajax.postJson('/xboe/m/stat/user/total/'+aid,data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户动态,分页查询
|
||||
*
|
||||
* @param {
|
||||
pageIndex,
|
||||
pageSize,
|
||||
contentType:'',内容类型
|
||||
aid:'', //指定用户的动态,
|
||||
hidden:true/false,//是否隐藏,不指定,查询全部
|
||||
} data
|
||||
*/
|
||||
const userDynamicList = function(data) {
|
||||
return ajax.post('/xboe/m/stat/userdynamic/list',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户最近 days 天的U币记录
|
||||
* @param {String} aid 用户的id
|
||||
* @param {Integer} days 整数,最近几天的记录
|
||||
*/
|
||||
const userCoinList = function(aid,days) {
|
||||
return ajax.get('xboe/m/stat/usercoinrecord/list?aid='+aid+'&days='+days);
|
||||
}
|
||||
|
||||
export default {
|
||||
sendEvent,
|
||||
userTotal,
|
||||
userDynamicList,
|
||||
userCoinList
|
||||
}
|
||||
Reference in New Issue
Block a user