一、处理 token

st)是从 URL 获取的参数

1.1 解密 st

window.atob(st.split('').reverse().join(''))

二、获取当前用户的用户信息

接口地址:/operate-api/bench/v1/userInfo

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

请求参数:

参数名称 参数说明 in 是否必须 数据类型 schema
Authorization Authorization header true string

响应状态:

状态码 说明 schema
200 OK Reply«BenchUserEntity»
201 Created
401 Unauthorized
403 Forbidden
404 Not Found

响应参数:

参数名称 参数说明 类型 schema
annex object
code string
data BenchUserEntity BenchUserEntity
  avatar 头像地址 string
  deptId 部门ID string
  email 用户邮箱 string
  entEntity 企业信息 企业信息
    activate string
    code string
    id string
    logo string
    name string
    opEntGroupId 运营企业集团id string
    parkId string
    parkName string
    type string
  isAdmin integer
  nickName 用户昵称 string
  parkEntity 园区信息 园区信息
    activate string
    code string
    id string
    logo string
    name string
  phonenumber 手机号码 string
  sex 用户性别(0男 1女 2未知) string
  staffEntity StaffEntity StaffEntity
    staffDeptId 部门 string
    staffDeptName 部门名称 string
    staffEmail 邮箱 string
    staffHead 员工头像 string
    staffHiredate 入职日期 string
    staffId 员工信息id string
    staffName 员工名称 string
    staffNo 员工编号 string
    staffPhone 手机号码 string
    staffPostId 岗位 string
    staffPostName 岗位名称 string
    staffSex 性别(0女、1男、2未知) string
    staffType 雇员类型 string
    staffUsId 关联用户id,不填 string
  status 帐号状态(0正常 1停用 3注销) string
  tenantId 租户id string
  userId 用户ID string
  userName 用户账号 string
  userType 用户类型(00系统用户) string
msg string
ok boolean
success boolean
time integer(int64) integer(int64)

响应示例:

{
    "annex": {},
    "code": "",
    "data": {
        "avatar": "",
        "deptId": "",
        "email": "",
        "entEntity": {
            "activate": "",
            "code": "",
            "id": "",
            "logo": "",
            "name": "",
            "opEntGroupId": "",
            "parkId": "",
            "parkName": "",
            "type": ""
        },
        "isAdmin": 0,
        "nickName": "",
        "parkEntity": {
            "activate": "",
            "code": "",
            "id": "",
            "logo": "",
            "name": ""
        },
        "phonenumber": "",
        "sex": 0,
        "staffEntity": {
            "staffDeptId": "",
            "staffDeptName": "",
            "staffEmail": "",
            "staffHead": "",
            "staffHiredate": "",
            "staffId": "",
            "staffName": "",
            "staffNo": "",
            "staffPhone": "",
            "staffPostId": "",
            "staffPostName": "",
            "staffSex": "",
            "staffType": "",
            "staffUsId": ""
        },
        "status": "",
        "tenantId": "",
        "userId": "",
        "userName": "",
        "userType": ""
    },
    "msg": "",
    "ok": true,
    "success": true,
    "time": 0
}
文档更新时间: 2024-03-07 14:44   作者:戴均豪