POST public/v3/AlbumMiniPrg/UpdatePhotoDesc
更新相片描述
Request
URI Params
None.
Body Params
相片 PhotoID/Desc
AlbumPhotoMiniPrgModel| 字段名 | 字段说明 | 字段类型 | 附加信息 |
|---|---|---|---|
| Name |
相片名称 |
string |
None. |
| UID |
上传用户 |
integer |
None. |
| UName |
用户名 |
string |
None. |
| UPic |
用户头像 |
string |
None. |
| FID |
文件ID |
integer |
None. |
| Praises |
点赞列表 (top n) |
Collection of AlbumPhotoPraiseMiniPrgModel |
None. |
| PhotoID |
相片ID |
integer |
None. |
| AlbumID |
所属相册 |
integer |
None. |
| AlbumName |
相册名称 |
string |
None. |
| Url |
相片路径 |
string |
None. |
| Desc |
相片描述 |
string |
None. |
| Date |
上传日期 |
date |
None. |
| ExifDate |
拍摄时间 |
date |
None. |
| CommentCnt |
评论数 |
integer |
None. |
| IsPraise |
是否点赞 |
boolean |
None. |
| PraiseCnt |
点赞数 |
integer |
None. |
| Height |
照片高度 |
integer |
None. |
| Width |
照片宽度 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"UID": "2",
"UName": "sample string 3",
"UPic": "sample string 4",
"FID": "5",
"Praises": [
{
"UID": "1",
"UName": "sample string 2",
"UPic": "sample string 3",
"Date": "2025-11-05T01:07:52.806Z"
},
{
"UID": "1",
"UName": "sample string 2",
"UPic": "sample string 3",
"Date": "2025-11-05T01:07:52.806Z"
}
],
"PhotoID": "6",
"AlbumID": "7",
"AlbumName": "sample string 8",
"Url": "sample string 9",
"Desc": "sample string 10",
"Date": "2025-11-05T01:07:52.806Z",
"ExifDate": "2025-11-05T01:07:52.806Z",
"CommentCnt": 13,
"IsPraise": true,
"PraiseCnt": 15,
"Height": 16,
"Width": 17
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Api Parameter Descriptions
| 参数描述 | 参数说明 | 参数源 |
|---|---|---|
| photo |
相片 PhotoID/Desc |
FromBody |
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"
}