POST public/v3/OpenAppSubApp/SaveSubApp
保存应用定义
Request
URI Params
None.
Body Params
SubAppWebModel字段名 | 字段说明 | 字段类型 | 附加信息 |
---|---|---|---|
SubAppID |
ID(新增时传0,修改时需带上此字段) |
integer |
None. |
No |
编号(便于区分、用于上传图标文件名区分)(必填) |
string |
None. |
Name |
应用名称(必填) |
string |
None. |
Desc |
描述 |
string |
None. |
Icon |
含有占位符的图标(不可编辑) |
string |
None. |
IconsetList |
已传图标集(选填) |
Collection of SubAppIconSet |
None. |
ST |
状态( 0未启用 1上架 -1下架) |
SubAppStatus |
None. |
IsShow |
是否显示(必填) |
boolean |
None. |
AndroidAppVer |
Android最低App版本 |
string |
None. |
IosAppVer |
Ios最低App版本 |
string |
None. |
Provider |
服务提供者(必填) |
string |
None. |
ActType |
指令类型(1-Cmd 2-Url)(必填) |
ActionType |
None. |
Action |
指令(必填) |
string |
None. |
BizDomainList |
适合的业务领域(可不选) |
Collection of BizDomain |
None. |
GTypeIsPub |
机构类型是否作为赛选条件 |
boolean |
None. |
GTypeList |
机构类型(可不选) |
Collection of integer |
None. |
RTypeIsPub |
角色类型是否作为赛选条件 |
boolean |
None. |
RTypeList |
适合的角色(可不选) |
Collection of integer |
None. |
PhaseIsPub |
教育阶段是否作为赛选条件 |
boolean |
None. |
PhaseList |
适合的教育阶段(可不选) |
Collection of integer |
None. |
GrdTypeIsPub |
年级段是否作为赛选条件 |
boolean |
None. |
GrdTypeList |
适合的年级段(可不选) |
Collection of integer |
None. |
CatgID |
分组ID(必填) |
integer |
None. |
STypeList |
会话类型(1-机构/学校会话 2-班级会话;仅所选分组的入口类型为会话时才需要选择)(必填) |
Collection of SubAppSType |
None. |
SNO |
分组内排序(不用传,后台返回) |
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. |
RTypeNames |
适合角色名称(列表使用不用传,后台返回) |
string |
None. |
PhaseNames |
教育阶段(列表使用不用传,后台返回) |
string |
None. |
ElemSizeName |
图标区块大小(1*1,1*2,1*4,2*4)(列表使用不用传,后台返回) |
string |
None. |
Request Formats
application/json, text/json
{ "SubAppID": 1, "No": "sample string 2", "Name": "sample string 3", "Desc": "sample string 4", "Icon": "sample string 5", "IconsetList": [ { "IconSetID": 1, "IconUrl": "sample string 2", "IconSetName": "sample string 3" }, { "IconSetID": 1, "IconUrl": "sample string 2", "IconSetName": "sample string 3" } ], "ST": 0, "IsShow": true, "AndroidAppVer": "sample string 7", "IosAppVer": "sample string 8", "Provider": "sample string 9", "ActType": 1, "Action": "sample string 10", "BizDomainList": [ 0, 0 ], "GTypeIsPub": true, "GTypeList": [ 1, 2 ], "RTypeIsPub": true, "RTypeList": [ 1, 2 ], "PhaseIsPub": true, "PhaseList": [ 1, 2 ], "GrdTypeIsPub": true, "GrdTypeList": [ 1, 2 ], "CatgID": "15", "STypeList": [ 1, 1 ], "SNO": 16, "ElemSize": 11, "ElemType": 0, "ContType": 0, "RTypeNames": "sample string 17", "PhaseNames": "sample string 18", "ElemSizeName": "sample string 19" }
application/x-www-form-urlencoded
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
{ "Ret": 1, "ErrCode": 2, "Msg": "sample string 3", "SeqId": 4, "InfoMsg": "sample string 5" }