POST public/v3/SubAppWeb/SaveSubApp
保存应用
Request
URI Params
None.
Body Params
SubApp2WebModel| 字段名 | 字段说明 | 字段类型 | 附加信息 |
|---|---|---|---|
| ID |
主键 |
integer |
None. |
| EntrType |
入口类型 |
EntranceType |
None. |
| No |
编号 |
string |
None. |
| Name |
名称 |
string |
None. |
| Desc |
描述 |
string |
None. |
| Provider |
提供者 |
string |
None. |
| Icon |
图标 |
string |
None. |
| ActType |
指令类型(1-Cmd 2-Url) |
ActionType |
None. |
| Url |
指令地址 |
string |
None. |
| Visible |
可见性 |
boolean |
None. |
| ST |
状态 |
boolean |
None. |
| AndroidAppVer |
安卓最小版本 |
string |
None. |
| IosAppVer |
iOS最小版本 |
string |
None. |
| STypeList |
会话类型(0-普通 1-机构/学校会话 2-班级会话;仅所选分组的入口类型为会话时才需要选择) |
Collection of integer |
None. |
| ElemSize |
图标区块大小(1*1,1*2,1*4,2*4等) |
SubAppElemSize |
None. |
| ElemType |
图标区块元素类型:Normal or Cont |
SubAppElemType |
None. |
| ContType |
内容模板(仅ElemType为Cont时才需要判断,默认情况下为Unknown不需要判断) |
ContentType |
None. |
| IsAppendRd |
是否追加随机码丢弃路由缓存 |
boolean |
None. |
| CatgName |
分组名称 |
string |
None. |
| CatgSNO |
分组排序 |
integer |
None. |
| SNO |
排序 |
integer |
None. |
| Grants |
授权 |
Collection of OrgSubAppGrantWebModel |
None. |
| GrantsDesc |
授权描述 |
string |
None. |
| IsRelatUrl | boolean |
None. |
|
| IsHttp | boolean |
None. |
|
| IsOAuth2 | boolean |
None. |
|
| ProductID | integer |
None. |
|
| Flag | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"EntrType": 1,
"No": "sample string 2",
"Name": "sample string 3",
"Desc": "sample string 4",
"Provider": "sample string 5",
"Icon": "sample string 6",
"ActType": 1,
"Url": "sample string 7",
"Visible": true,
"ST": true,
"AndroidAppVer": "sample string 10",
"IosAppVer": "sample string 11",
"STypeList": [
1,
2
],
"ElemSize": 11,
"ElemType": 0,
"ContType": 0,
"IsAppendRd": true,
"CatgName": "sample string 13",
"CatgSNO": 14,
"SNO": 15,
"Grants": [
{
"ID": "1",
"OrgType": 0,
"OrgID": "2",
"EntrType": 1,
"SubAppID": 3,
"GrantType": 0,
"Val": [
1,
2
]
},
{
"ID": "1",
"OrgType": 0,
"OrgID": "2",
"EntrType": 1,
"SubAppID": 3,
"GrantType": 0,
"Val": [
1,
2
]
}
],
"GrantsDesc": "sample string 16",
"IsRelatUrl": true,
"IsHttp": true,
"IsOAuth2": true,
"ProductID": 20,
"Flag": 21
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Api Parameter Descriptions
| 参数描述 | 参数说明 | 参数源 |
|---|---|---|
| model | 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"
}