POST public/v3/SubApp/SaveGrpSubApps?gID={gID}
保存当前群组的已选应用列表(会话夹应用)
Request
URI Params
| 字段名 | 字段说明 | 字段类型 | 附加信息 |
|---|---|---|---|
| gID |
当前群组ID |
integer |
Required |
Body Params
Collection of SubAppApiModel| 字段名 | 字段说明 | 字段类型 | 附加信息 |
|---|---|---|---|
| SubAppID |
应用ID(后台返回) |
integer |
None. |
| Name |
应用名称(后台返回) |
string |
None. |
| Icon |
图标(后台返回) |
string |
None. |
| EntrType |
【v3待废除】 入口类型(后台返回),转移到分组属性上 兼容方式:根据分组属性的值导航 |
EntranceType |
None. |
| SNO |
默认的排序号(按不同的分组排序) |
integer |
None. |
| ActType |
操作类型:App指令或URL(后台返回) |
ActionType |
None. |
| Action |
具体的指令或地址(后台返回) |
string |
None. |
| CNO |
【v3待废除】,分组号,使用long型id表示分组 兼容方式:取新增的分组id的值最后4位 |
integer |
None. |
| GID |
群组ID,若为个人应用,则为0;用于批量返回群组会话夹应用时的标记(后台返回) |
integer |
None. |
| AppVer |
最低版本号 |
string |
None. |
| ElemType |
元素类型(后台返回) |
SubAppElemType |
None. |
| ElemSize |
元素大小(后台返回) |
SubAppElemSize |
None. |
| ContType |
内容模板(仅ElemType为Cont时才需要判断,默认情况下为Unknown不需要判断) |
ContentType |
None. |
| Category |
分组 |
SubAppCatgApiModel |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"SubAppID": 1,
"Name": "sample string 2",
"Icon": "sample string 3",
"EntrType": 1,
"SNO": 4,
"ActType": 1,
"Action": "sample string 5",
"CNO": 6,
"GID": 7,
"AppVer": "sample string 8",
"ElemType": 0,
"ElemSize": 11,
"ContType": 0,
"Category": {
"CatgID": 1,
"Name": "sample string 2",
"EntrType": 1,
"IsShowName": true,
"SNO": 4,
"IsFold": true,
"Icon": "sample string 6"
}
},
{
"SubAppID": 1,
"Name": "sample string 2",
"Icon": "sample string 3",
"EntrType": 1,
"SNO": 4,
"ActType": 1,
"Action": "sample string 5",
"CNO": 6,
"GID": 7,
"AppVer": "sample string 8",
"ElemType": 0,
"ElemSize": 11,
"ContType": 0,
"Category": {
"CatgID": 1,
"Name": "sample string 2",
"EntrType": 1,
"IsShowName": true,
"SNO": 4,
"IsFold": true,
"Icon": "sample string 6"
}
}
]
application/x-www-form-urlencoded
Sample:
Sample not available.
Api Parameter Descriptions
| 参数描述 | 参数说明 | 参数源 |
|---|---|---|
| subAppApiModels | FromBody | |
| gID |
当前群组ID |
FromUri |
Response
APITResultOfIEnumerableOfSubAppApiModel| 字段名 | 字段说明 | 字段类型 | 附加信息 |
|---|---|---|---|
| Data | Collection of SubAppApiModel |
None. |
|
| 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:
{
"Data": [
{
"SubAppID": 1,
"Name": "sample string 2",
"Icon": "sample string 3",
"EntrType": 1,
"SNO": 4,
"ActType": 1,
"Action": "sample string 5",
"CNO": 6,
"GID": 7,
"AppVer": "sample string 8",
"ElemType": 0,
"ElemSize": 11,
"ContType": 0,
"Category": {
"CatgID": 1,
"Name": "sample string 2",
"EntrType": 1,
"IsShowName": true,
"SNO": 4,
"IsFold": true,
"Icon": "sample string 6"
}
},
{
"SubAppID": 1,
"Name": "sample string 2",
"Icon": "sample string 3",
"EntrType": 1,
"SNO": 4,
"ActType": 1,
"Action": "sample string 5",
"CNO": 6,
"GID": 7,
"AppVer": "sample string 8",
"ElemType": 0,
"ElemSize": 11,
"ContType": 0,
"Category": {
"CatgID": 1,
"Name": "sample string 2",
"EntrType": 1,
"IsShowName": true,
"SNO": 4,
"IsFold": true,
"Icon": "sample string 6"
}
}
],
"Ret": 1,
"ErrCode": 2,
"Msg": "sample string 3",
"SeqId": 4,
"InfoMsg": "sample string 5"
}