简要描述:

  • 修改用户信息(身份证、手机需要加密传递)
  • 输入参数除了必填,其它有修改,再传递

    接口版本:

版本号 制定人 制定日期 修订日期
v3 陈碧贵 2022-05-14 xxxx-xx-xx

请求URL:

请求方式:

  • PUT

请求头:

参数名 是否必须 类型 说明
XownerId string 项目唯一ID,对应bo_project {ownerId}
XsysId string 所属系统 对应 bo_system 表
XuserFromFirstShareId string 一级分享用户ID, bo_user user_id
XuserFromSecondShareId string 二级分享用户ID, bo_user user_id
XverifyApi string 加密规则encryptByDES(`${newGuid()}
XfilterAreaCode string 行政区编码, 对应 bo_sys_area area_code
Content-Type: string application/json; charset=utf-8 请求类型
Authorization string 当前用户认证信息,通过登录接口获取 Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6

请求参数:

参数名 是否必须 类型 说明
_nodejs string common-data 对应/Config/AppNodeJs/Plugins/fn- common-data.js, 通过nodejs插件,对响应结果进行二次处理 common-data 普通数据(小写驼峰)common-data-under 普通数据下划线
_menuId string bo_sys_menu里面修改个人信息的ID, 正常 _menuId=bt-deve-bt-20200-c197f4fb-153b-46b4

body参数:

  1. 除了userId必填,其它可以动态传递。
  2. 如果value、name只要传递value值
  3. batO 里面 ui:先更新后删除、u:更新、i:插入、d:删除
{
    "pushName": "发布名称",
    "address": "XX地址",
    "city": "福州市",
    "province": "福建省",
    "telephone": "L2tCAXevFMZ/B/KXgQy/iA==",
    "email": "920673281@qq.com",
    "level": {
      "name": "V2",
      "value": 2
    },
    "sex": {
      "name": "男",
      "value": "1"
    },
    "birthday": { 
       "value": "2022-05-17T12:15:17",
       "name": "2022-05-17"
    },
    "account": {
      "batO": "ui",
      "userId": "4036985194777939968",
      "userName": "mxxs1650409075001wechatmini",
      "nikeName": "逆影",
      "errorCount": 0,
      "wxAppOpenId": "oxUZP5QHN--2ePi0",
      "diffTableNo": 1,
      "isApp": {
        "name": "否",
        "value": 0
      },
      "isDeveloper": {
        "name": "否",
        "value": 0
      },
      "isMultipleLogin": {
        "name": "否",
        "value": 0
      },
      "userStatus": {
        "name": "正常",
        "value": 1
      },
      "unlockTime": {}
    },
    "area": [
         {
            "batO": "ui",
            "value": "350000",
            "name": "福建省",
            "userId": "4036985194777939968",
            "areaCode": "350000",
            "areaName": "福建省",
            "diffTableNo": 1
          }
    ],
    "dep": [
     {
        "batO": "ui",
        "value": "350000",
        "name": "部门名称",
        "userId": "4036985194777939968",
        "depId": "350000",
        "depName": "部门名称",
        "diffTableNo": 1
      }
    ],
    "job": [
         {
            "batO": "ui",
            "value": "350000",
            "name": "角色名称",
            "userId": "4036985194777939968",
            "jobId": "350000",
            "jobName": "角色名称",
            "diffTableNo": 1
          }
    ],
    "role": [
      {
        "batO": "ui",
        "userId": "ptdev",
        "roleId": "development",
        "roleName": "开发管理员",
        "diffTableNo": 1
      }
    ],
    "headIcon": "https://thirdwx.qlogo.cn/mmopen/vi_32/A21RVy3ibkoPGEqElnsY2Olia37tJ9wjy10YOb2NWASOTMkkOvLVD1Jj2qGT5eZrphECbxYwI6P0teeTj5KvnSmg/132",
    "idCard": "",
    "nikeName": "pdv",
    "realName": "开发管理员",
    "sortId": 1,
    "userId": "ptdev",
    "pointNum": 33,
    "couponNum": 23,
    "studentNo": "23",
    "employeeNo": "23",
    "employeeNum": 43,
    "memberNo": "2",
    "needVal": "4",
    "money": 45.3,
    "currentVal": "23",
    "userExp1": "4",
    "userExp2": "23",
    "userExp3": 4,
    "userExp4": 3,
    "userExp5": 4,
    "userExp6": 4,
    "diffTableNo": 0,
    "isHidePhone": {
      "name": "是",
      "value": 1
    },
    "userStatus": {
      "name": "正常",
      "value": 1
    }
  }
参数名 是否必须 类型 说明
userId string 主键唯一标识值 (名称根据实际进行调整)
email string 邮箱
headIcon string 头像信息
sex object
value 性别1男;0女
account object 账号信息
batO ui 固定,先更新后插入
nikeName 昵称
idCard string 身份证号,加密传递,同 XverifyApi里面的 Aes加密
telephone string 手机号 ,加密传递,同 XverifyApi里面的 Aes加密
area array 行政区信息
areaCode 行政区码

返回示例:

正确时返回:

{
    "data": {
        "mergeUserId": "191221",
        "userId": "ptAEde122v",
        "mergeUserId$191221": "191221",
        "userId$ptAEde122v": "ptAEde122v"
    },
    "code": "0",
    "retCode": "0",
    "success": true,
    "message": "更新:总数1条,成功1条,失败0条。",
    "fromApi": "edit",
    "fromEnv": "development"
}

错误时返回:

{
    "code": 0,
    "message": ""
    "error":{
      errorCode:null,
      errorText:null
    }
    "success": false,
}

返回参数说明:

参数名 类型 说明
success bool true 表示数据请求成功(跟code=0一致),调用者优先使用
code int true 表示数据请求成功(跟code=0一致),调用者优先使用
data object
cacheType string redis/sqlite/local 数据来源缓存 的类型(便于开发调试和性能优化)
cacheDate date 最后数据获取时间
文档更新时间: 2022-08-29 08:09   作者:admin