1. 获取用户信息接口

接口名称 获取用户信息
功能描述 获取用户信息
请求地址 http://qy-ci.fdccloud.com/api/wzs/get-user-info?access_token=@access_token
请求方式 POST(HTTPS)

请求包结构

{
    "tenant_code": "mysoft_ci",
    "app_cache_host": "https://x:8080",
    "wzs_user_id": "@wzs_user_id",
    "tenant_id": "@tenant_id",
    "version_name": "3.9.0",
    "device_id ": "@device_id",
    "device_name": "iPhone 11 Pro",
    "device_token": "@device_token",
    "platform": 1,
    "push_channel": 1,
    "os_version": "13.1",
    "__language__": "zh-CN",
    "device_id": "@device_id"
}

参数说明

参数 中文名 参数类型 说明
app_cache_host 主机地址 String 登录接口返回的cloud.host字段,支持私有云部署情况

返回结果

{
    "success": 1,
    "data": {
        "code": 1,
        "message": "",
        "user_info": {
            "id": "221812",
            "name": "meiyi",
            "avatar": "https://oss-mytest.oss-cn-hangzhou.aliyuncs.com/0000/wzs/avstar/wzs5dedad52e6b554233270625dee48ec3f2fa",
            "sex": "0",
            "protected": false,
            "often_device": true,
            "wzs_user_id": "wzs5dedad52e6b55423327062",
            "erp_user_code": "meiy02",
            "phone": "",
            "tenant_id": "my56a9c966df069",
            "tenant_logo_url": "https://oss-mytest.oss-cn-hangzhou.aliyuncs.com/0000/my56a9c966df069/basic/bootpage/705fc60808feae493f0d7e008fe3cb6d.jpeg",
            "tab_index": 0,
            "tenant_name": "体验环境",
            "tenant_code": "mysoft_ci",
            "forced_gesture": false,
            "forced_protected": false,
            "gesture_enable": false,
            "gesture_time_interval": "30",
            "gesture_password": "",
            "page_code": "200100",
            "im": {
                "token": "",
                "im_user_id": "",
                "im_user_password": "",
                "discussion_type_enable": false,
                "associate_work_enable": false,
                "associate_work_link": "https://yzs-ci.fdccloud.com/my56a9c966df069/h5/associated-work/get-list",
                "enable": true
            },
            "can_change_account_password": false,
            "change_account_password_tip": "请在明源ERP中修改密码",
            "address_enable": true,
            "cloud": {
                "host": "https://qy-ci.fdccloud.com",
                "yzs_app_publish_url": "https://yzs-ci.fdccloud.com/pubnotice/pub-view/app-publish"
            },
            "belong_dept": [{
                "yzs_order_hierarchy_code": "10000.10011.10001",
                "dept_name": "产品体验"
            }],
            "setting_tel_password": false
        }
    }
}

参数说明

参数 中文名 参数类型 说明
protected 是否开启账号保护 boolean True:开启 False:未开启
often_device 是否是常用设备 boolean True:是 False:否
phone 绑定的手机号 String
tab_index 首页定位标签索引 int
page_code 定位的首页标识(@Since 3.2.0) String 200100:消息 200101:常用功能 200200:工作台 appcode:具体到某个H5应用 200300:联系人 200400:我的
forced_gesture 企业是否开启了强制手势密码 boolean
gesture_ time interval 手势密码时间间隔 int 单位秒,无此字段默认为30秒
forced_protected 是否强制开启账号保护 boolean 默认false
forced_protected 是否强制开启账号保护 boolean 默认false
im.token IM token String @Since3.4.0
im.enable 是否开启IM功能 boolean @Since3.4.0
im.im_user_password IM密码 boolean @Since3.4.0 AES加密后的结果
address_enable 是否开启通讯录功能 boolean 默认true
can_change_account_password 是否可以修改密码 boolean
change_account_password_url 修改密码时跳转的地址 String
change_account_password_tip 不允许修改密码时的提示信息 String
discussion_type_enable 是否开启讨论组类型 boolean 默认false
associate_work_enable 是否开启关联工作项 boolean 默认false
setting_tel_password 是否设置了手机号密码 boolean
cloud.yzs_app_publish_url 云助手APP功能介绍网页地址 String
cloud.host 云助手云端域名地址 String 兼容私有云部署情况

results matching ""

    No results matching ""