通用模板文档(统一获取)

## 通用模板 ### 请求动作/路径 GET /v1/globaltemp?tenantId=0 ### 请求参数 参数名|参数值类型|描述|是否必须|备注 :---:|:---:|:---:|:---:|:---: 租户id| tenantId| 租户id |是 |0为通用模板 ### 响应参数 参数名|参数值类型|描述|是否必须|备注 :---:|:---:|:---:|:---:|:---: code | int| 返回编码 |是 | msg|str|返回消息|是| data|object|数据|是| ### code返回码表 ``` (0,"成功"), (100,"失败"), (2001,"报文解析失败"), (3001,"接口请求异常"), (3002,"数据插入失败"), (3003,"参数校验不通过,缺少必填项或格式错误"), (3006,"数据异常"), (3013,"日期格式错误"), (2004,"请求参数为空"), (1003,"无数据"), (6001,"业务异常"), (9001,"程序处理异常"); ``` ### 请求示例 ### 响应示例 ``` { "code":0, "msg":"成功", "data":{ "sorts":[ { "id":1, "sortName":"玩游戏", "sortChildren":[ { "id":"1", "sortName":"网络游戏", "softwares":[ { "id":1, "name":"df", "number":1, "link":"https://xxx.xxx.com/1.html", "icon":"https://yyy.yyy.com/1.png", "remark":"" }, { "id":2, "name":"df", "number":1, "link":"https://xxx.xxx.com/1.html", "icon":"https://yyy.yyy.com/1.png", "remark":"" } ], "adsenses":[ { "id":1, "name":"df", "image":"https://yyy.yyy.com/1.png", "sortId":1, "action":"#0000ff", "actionContent":"#0000ff", "softwareId":1, "number":1 } ] }, { "id":"2", "sortName":"单机游戏", "softwares":[ { "id":1, "name":"df", "number":1, "link":"https://xxx.xxx.com/1.html", "icon":"https://yyy.yyy.com/1.png", "remark":"" }, { "id":2, "name":"df", "number":1, "link":"https://xxx.xxx.com/1.html", "icon":"https://yyy.yyy.com/1.png", "remark":"" } ] } ] } ], "theme":{ "id":1, "name":"df", "logo": "1234.jpg", "logoPath": "/usr/local/ecloud-game/theme/", "themeColor":"#0000ff", "backgroundColor":"#0000ff", "menuFontColor":"#0000ff", "bodyFontColor":"#0000ff", "gameBackgroundColor": null, "menuBackgroundColor": null, "auxiliaryLineColor": "#9D1414", "imageUrl": "/v1/theme/1234.jpg" } } } ```