Splash頁接口
接口說(shuō)明
接口名稱:loadingInfo
Dubbo調用:msLoadingInfoService
接口描述:Splash頁接口用于(yú)客戶端在(zài)啓動時(shí), 顯示節假日、運營、推廣、廣告等信息的(de)數據配置。
入參
header通用參數
業務參數
字段名稱 | 字段類型 | 字段描述 | 是(shì)否必須 |
---|---|---|---|
iphoneSize | String | iphone手機屏幕尺寸(單位寸) | iphone平台(osType=01)必填, 其他(tā)平台不(bù)需要(yào / yāo) |
出(chū)參
字段名稱 | 字段類型 | 字段描述 | 是(shì)否必須 |
---|---|---|---|
app_id | String | appId | |
dev_type | String | DEV類型 | |
holiDay | String | 節日 | |
holiName | String | 節日名稱 | |
holiDayStart | String | HOLT開始時(shí)間 | |
holiDayEnd | String | HOLT結束時(shí)間 | |
holi_load_start | String | HOLILoad開始 | |
holi_load_end | String | HOLILoad結束 | |
holi_img | String | HOLI图片 | |
pub_date | String | PUB日期 | |
valid_flag | String | 有效标記 | |
urlType | String | 1:手機銀行自有web服務2:客戶端已有功能(動态菜單)(包括web服務和(hé / huò)native界面)3:第三方提供的(de)web服務4:客戶端已有功能(非動态菜單)(包括web服務和(hé / huò)native界面) | |
loadUrl | String | LoadURL | |
urlParam | String | URL參數 | |
paramList | String | 參數列表 | |
loginFlag | String | 登陸标識:0-不(bù)登陸1-登陸 | |
titleFlag | String | 是(shì)否顯示标題:0-否 1-是(shì) | |
titleName | String | 标題名稱 | |
needReq | String | 是(shì)否需要(yào / yāo)再次請求:0-否 1-是(shì) | |
reqUrl | String | 請求URL | |
reqParam | String | 請求參數 | |
waitFlag | String | 是(shì)否需要(yào / yāo)設置等待時(shí)間:0-不(bù)等待 1-等待 | |
waitTime | String | 等待時(shí)間 | |
jumpFlag | String | 是(shì)否需要(yào / yāo)跳轉:0-不(bù)跳轉 1-跳轉 | |
drop_img_type | String | 頂部營銷區的(de)下拉图片位置,1-首頁,2-生活圈 |
樣例
dubbo協議接入:
請求url:http://localhost:9102/gw/hk_e_app/msLoadingInfoService.do
請求數據格式:
{
"request":{
"body":{
"iphoneSize":"5.8"
},
"header": {
"appId": "1",
"appVersion": "1.0",
"ffVersion": "4.0",
"transId": "loadingInfo",
"appExt": "1",
"custType": "100",
"signedMicroFlag": "0",
"net": {
"ip": "127.0.0.1",
"netType": "WIFI_oa-test",
"isp": "中国移動",
"ssid": "oa-test",
"lac": "4203",
"cid": "10732931"
},
"device": {
"osType": "01",
"osVersion": "8.0.0",
"brand": "samsung",
"model": "SM-G9500",
"uuid": "2e2bc2402301ea3e1e021362dd6b7a1e",
"imei": "357052091333047",
"mac": "00:9D:6B:32:00:24",
"nfc": "1",
"isRoot": "0",
"imsi": "8986003915187a258429"
},
"reqSeq": "0"
}
}
}
http協議接入:
請求url:
http://localhost:8080/ffpaas/base/loadingInfo.json
請求數據格式:
{
"request":{
"body":{
"iphoneSize":"5.8"
},
"header": {
"appId": "1",
"appVersion": "1.0",
"ffVersion": "4.0",
"transId": "loadingInfo",
"appExt": "1",
"custType": "100",
"signedMicroFlag": "0",
"net": {
"ip": "127.0.0.1",
"netType": "WIFI_oa-test",
"isp": "中国移動",
"ssid": "oa-test",
"lac": "4203",
"cid": "10732931"
},
"device": {
"osType": "01",
"osVersion": "8.0.0",
"brand": "samsung",
"model": "SM-G9500",
"uuid": "2e2bc2402301ea3e1e021362dd6b7a1e",
"imei": "357052091333047",
"mac": "00:9D:6B:32:00:24",
"nfc": "1",
"isRoot": "0",
"imsi": "8986003915187a258429"
},
"reqSeq": "0"
}
}
}
dsdl配置
節點配置
msLoadingInfoService$applicationName,true
說(shuō)明:
applicationName修改爲(wéi / wèi)應用
xml參數配置
- 創建節點,節點名稱爲(wéi / wèi)
interface-mapping
- 添加配置參數信息,如下
<?xml version="1.0" encoding="UTF-8"?>
<interface name="msLoadingInfoService" description="版本升級接口" auth="false">
<configs>
<config key="accessLog" value="false"/>
<config key="transDataRecordMode" value="on"/>
<config key="productId" value="ECommon"/>
</configs>
<input>
<param name="iphoneSize" description="iphoneSize" type="String" optional="true"/>
</input>
<output>
<param name="returnCode" description="處理結果" type="Map" optional="false">
<param name="code" description="返回碼" type="String" optional="false"/>
<param name="message" description="返回信息" type="String"/>
<param name="type" description="處理結果類型" type="String" optional="false"/>
</param>
<param name="loadingInfo" type="List"/>
</output>
</interface>