POST api/User/EditValue
保存卡里路和里程
Request Information
Body Parameters
EditUserInfoModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
用户Id |
integer |
None. |
| Username |
用户名 |
string |
None. |
|
电子邮箱 |
string |
None. |
|
| Address |
地址 |
string |
None. |
| Avatar |
头像,上传时,此字段值为 图片的Base64字符串 |
string |
None. |
| CellPhone |
电话号码 |
string |
None. |
| Sim |
SIM卡号码 |
string |
None. |
| FirstName |
首次名字 |
string |
None. |
| Gender |
性别 true男 false 女 |
boolean |
None. |
| Birthday |
生日 |
date |
None. |
| Weight |
体重 |
decimal number |
None. |
| Height |
身高 |
decimal number |
None. |
| Steps |
步数目标 |
integer |
None. |
| Distance |
目标里程 |
decimal number |
None. |
| SportTime |
目标时长 |
integer |
None. |
| Calorie |
目标卡路里 |
integer |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"Username": "sample string 2",
"Email": "sample string 3",
"Address": "sample string 4",
"Avatar": "sample string 5",
"CellPhone": "sample string 6",
"Sim": "sample string 7",
"FirstName": "sample string 8",
"Gender": true,
"Birthday": "2025-12-12T05:25:38.0994655+08:00",
"Weight": 10.1,
"Height": 11.1,
"Steps": 12,
"Distance": 13.1,
"SportTime": 14,
"Calorie": 15,
"Token": "sample string 16",
"Language": "sample string 17",
"AppId": "sample string 18"
}
application/xml, text/xml
Sample:
<EditUserInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 18</AppId> <Language>sample string 17</Language> <Token>sample string 16</Token> <Address>sample string 4</Address> <Avatar>sample string 5</Avatar> <Birthday>2025-12-12T05:25:38.0994655+08:00</Birthday> <Calorie>15</Calorie> <CellPhone>sample string 6</CellPhone> <Distance>13.1</Distance> <Email>sample string 3</Email> <FirstName>sample string 8</FirstName> <Gender>true</Gender> <Height>11.1</Height> <Sim>sample string 7</Sim> <SportTime>14</SportTime> <Steps>12</Steps> <UserId>1</UserId> <Username>sample string 2</Username> <Weight>10.1</Weight> </EditUserInfoModel>
Response Information
Resource Description
NormalResult
| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
消息 [大多数情况下可通过该消息做为提示语] |
string |
None. |
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"State": 2
}
application/xml, text/xml
Sample:
<NormalResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>2</State> <Message>sample string 1</Message> </NormalResult>