POST city/v3/UserAuthWeb/SaveCurrUserMember

保存当前选中的用户身份

Request

URI Params

None.

Body Params

BaseAuthContext
字段名字段说明字段类型附加信息
UMID

用户身份唯一标识

integer

None.

UserId

用户在企业内的UserID,对应管理端的帐号,企业内唯一。注意:如果用户所在企业并没有安装此小程序应用,则返回加密的userid

string

None.

MobilePhone

手机号

string

None.

Name

姓名

string

None.

GID

当前机构ID

integer

None.

CorpId

企微机构编号

string

None.

RL

行政区划层级(开通机构)

RegionLevel

None.

ORL

行政区划层级(隶属单位)

RegionLevel

None.

BusinessType

单位业务领域

EnumOrgBusinessType

None.

UT

单位类型

UnitType

None.

ProvinceId

省编号

integer

None.

ProvinceName

省名称

string

None.

CityId

市编号

integer

None.

CityName

市名称

string

None.

CountyId

县编号

integer

None.

CountyName

县名称

string

None.

TownId

镇编号

integer

None.

TownName

镇名称

string

None.

VillageId

村编号

integer

None.

VillageName

村名称

string

None.

OrgID

隶属单位

integer

None.

OrgName

隶属单位名称

string

None.

RoleType

用户身份类型

EnumRoleType

None.

WXUserInfo

居民

ResidentWWModel

None.

Dutys

职责任务(新)

Collection of EnumDutyType

None.

RoleIds

角色ID集合(新)

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UMID": "1",
  "UserId": "sample string 2",
  "MobilePhone": "sample string 3",
  "Name": "sample string 4",
  "GID": "5",
  "CorpId": "sample string 6",
  "RL": 0,
  "ORL": 0,
  "BusinessType": 0,
  "UT": 1,
  "ProvinceId": "7",
  "ProvinceName": "sample string 8",
  "CityId": "9",
  "CityName": "sample string 10",
  "CountyId": "11",
  "CountyName": "sample string 12",
  "TownId": "13",
  "TownName": "sample string 14",
  "VillageId": "15",
  "VillageName": "sample string 16",
  "OrgID": "17",
  "OrgName": "sample string 18",
  "RoleType": 0,
  "WXUserInfo": {
    "Id": "1",
    "OpenId": "sample string 2",
    "Name": "sample string 3",
    "MobilePhone": "sample string 4",
    "IDCard": "sample string 5",
    "RID": "6",
    "RNames": "sample string 7",
    "HeadPortrait": "sample string 8",
    "CTime": "sample string 9",
    "VerifyCode": "sample string 10"
  },
  "Dutys": [
    100001,
    100001
  ],
  "RoleIds": [
    "1",
    "2"
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BaseAuthContext'.

Response

APIResult
字段名字段说明字段类型附加信息
Ret

返回结果(0-成功;>0-失败) ret=0 成功返回/ret=1 参数错误/ret=2 频率受限 /ret=3 Token无效 /ret=4 服务器内部错误 /ret=5 用户操作错误 / ret=6 停机维护 / ret=7 身份失效

integer

None.

ErrCode

错误代码,因功能而异

integer

None.

Msg

返回信息

string

None.

SeqId

请求序列

integer

None.

InfoMsg

API附加信息

string

None.

application/json, text/json

Sample:
{
  "Ret": 1,
  "ErrCode": 2,
  "Msg": "sample string 3",
  "SeqId": 4,
  "InfoMsg": "sample string 5"
}