POST api/HSUSer/SaveHome

Request Information

URI Parameters

None.

Body Parameters

SaveUserReq
NameDescriptionTypeAdditional information
realName

string

None.

mobile

string

None.

pwd

string

None.

xq

integer

None.

address

string

None.

ek_homeId

integer

None.

createHome

integer

None.

AccessKey

(必填)基础token,RSA公钥加密(填充模式:RSA_PKCS1_OAEP_PADDING)>base64

string

None.

SysTarget

(必填)终端设备,WXMiniProgram=4,WX=1,ANDROID=2,IOS=3

integer

None.

UserToken

用户token-在指定拉取用户信息时需要提供

string

None.

Timestamp

(必填)时间戳,数据格式:yyyyMMddHHmmss

string

None.

Sign

(必填)签名。步骤:1、将所有不为空字段的入参key转成大写(不含Sign)以字典序拼凑成URL键值对 2、将key=AccessKey(未RSA加密)加入到第1步拼成的字符串末尾进行MD5加密并转大写,即可得到签名

string

None.

Request Formats

application/json, text/json

Sample:
{
  "realName": "sample string 1",
  "mobile": "sample string 2",
  "pwd": "sample string 3",
  "xq": 1,
  "address": "sample string 4",
  "ek_homeId": 1,
  "createHome": 1,
  "AccessKey": "sample string 5",
  "SysTarget": 6,
  "UserToken": "sample string 7",
  "Timestamp": "sample string 8",
  "Sign": "sample string 9"
}

application/xml, text/xml

Sample:
<SaveUserReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models.Req">
  <AccessKey xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 5</AccessKey>
  <Sign xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 9</Sign>
  <SysTarget xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">6</SysTarget>
  <Timestamp xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 8</Timestamp>
  <UserToken xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 7</UserToken>
  <address>sample string 4</address>
  <createHome>1</createHome>
  <ek_homeId>1</ek_homeId>
  <mobile>sample string 2</mobile>
  <pwd>sample string 3</pwd>
  <realName>sample string 1</realName>
  <xq>1</xq>
</SaveUserReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommResult
NameDescriptionTypeAdditional information
dtCode

integer

None.

dtMsg

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "dtCode": 1,
  "dtMsg": "sample string 2",
  "data": {}
}

application/xml, text/xml

Sample:
<CommResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models.DTO">
  <data />
  <dtCode>1</dtCode>
  <dtMsg>sample string 2</dtMsg>
</CommResult>