feat: 接口更新
This commit is contained in:
53
src/api/dataWatch/onlineUser.js
Normal file
53
src/api/dataWatch/onlineUser.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
|
||||||
|
|
||||||
|
import request from "@/utils/request";
|
||||||
|
const api = "/mosty-api/mosty-websocket";
|
||||||
|
/**
|
||||||
|
* 获取在线用户数
|
||||||
|
* @param {Object} params - 查询参数
|
||||||
|
* @returns {Promise<Array<SysUser>>} 返回在线用户数组
|
||||||
|
*
|
||||||
|
* @typedef {Object} SysUser 在线用户对象
|
||||||
|
* @property {string} [avatar] - 头像
|
||||||
|
* @property {string} [beginTime] - 用户有效开始时间,默认为当前日期(用户可改)
|
||||||
|
* @property {string} [birthday] - 出生日期
|
||||||
|
* @property {string} [bz] - 备注
|
||||||
|
* @property {string} [email] - 用户邮箱
|
||||||
|
* @property {string} [endTime] - 用户有效结束时间,默认空
|
||||||
|
* @property {number} [id] - 用户ID
|
||||||
|
* @property {string} [idEntityCard] - 身份证号
|
||||||
|
* @property {string} [inDustRialId] - 行业号码(如:警号)
|
||||||
|
* @property {string} [isVirtualUser] - 是否虚拟用户:1、是 2、不是
|
||||||
|
* @property {string} [loginName] - 登录账号
|
||||||
|
* @property {number} [managerOrgId] - 管理部门ID
|
||||||
|
* @property {string} [managerOrgName] - 管理部门名称
|
||||||
|
* @property {string} [marital] - 婚姻状态
|
||||||
|
* @property {string} [mk] - -
|
||||||
|
* @property {string} [mobile] - 移动电话
|
||||||
|
* @property {string} [nation] - 民族
|
||||||
|
* @property {string} [password] - 密码
|
||||||
|
* @property {string} [politic] - 政治面貌
|
||||||
|
* @property {number} [positionId] - 岗位ID
|
||||||
|
* @property {string} [positionName] - 岗位名称
|
||||||
|
* @property {string} [sex] - 用户性别(0男 1女 2未知)
|
||||||
|
* @property {string} [sfrh] - -
|
||||||
|
* @property {string} [telePhone] - 电话号码
|
||||||
|
* @property {string} [type] - 人员类别
|
||||||
|
* @property {string} [typeName] - 人员类别中文
|
||||||
|
* @property {string} [userId] - -
|
||||||
|
* @property {string} [userName] - 用户昵称
|
||||||
|
* @property {string} [userType] - 用户类型(00系统用户 01注册用户)
|
||||||
|
* @property {string} [whcd] - 文化程度
|
||||||
|
|
||||||
|
* @property {number} [xzcs] - 选择次数
|
||||||
|
*/
|
||||||
|
export const socketCurrentUser = (params) => {
|
||||||
|
return request({
|
||||||
|
url: api + "/socket/currentUser",
|
||||||
|
method: "get",
|
||||||
|
params
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// import {socketCurrentUser} from "@/api/dataWatch/onlineUser.js"
|
||||||
Reference in New Issue
Block a user