便民服務(wù)
1.獲取企業(yè)的商品信息表
請(qǐng)求方式:Get
功能:獲取各企業(yè)提供的服務(wù)(包括商品)
請(qǐng)求路徑:http://192.168.1.151:10007/Handler/GetGoods_Service.ashx
請(qǐng)求參數(shù)和描述:
字段名 |
備注 |
MerchantsID |
企業(yè)編號(hào) |
GoodsTypeGUID |
商品類別編號(hào) |
請(qǐng)求格式:
{
"MerchantsID":"",
"GoodsTypeGUID": ""
}
返回參數(shù)和描述:
字段名 |
備注 |
goodsguid |
商品編號(hào) |
merchantsid |
所屬企業(yè)編號(hào) |
goodtypeguid |
商品類別編號(hào) |
goodsname |
商品名稱 |
goodstypename |
商品類別 |
goodsimgs |
商品照片 |
price |
商品價(jià)格 |
description |
商品描述 |
checkstate |
審核狀態(tài) |
salestate |
是否在售 |
viewcount |
瀏覽次數(shù) |
weight |
商品重量 |
quantity_month |
月銷售量 |
quantity_total |
總銷售量 |
star |
星級(jí) |
返回格式:
[
{
"goodsguid": "0001",
"merchantsid": "0001",
"goodtypeguid": "002",
"goodsname": "快餐",
"goodsimgs": "",
"price": "25",
"description": "",
"checkstate": "1",
"salestate": "1",
"viewcount": "0",
"weight": "",
"quantity_month": "25",
"quantity_total": "76",
"star": "5",
"goodstypename": "快餐簡(jiǎn)餐"
}
]
2.獲取經(jīng)營(yíng)企業(yè)列表
請(qǐng)求方式:Get
功能:獲取各企業(yè)提供的服務(wù)(包括商品)
請(qǐng)求路徑:http://192.168.1.151:10007 /Handler/GetBMFW_SERVICE.ashx
請(qǐng)求參數(shù)和描述:
字段名 |
備注 |
MerchantsID |
企業(yè)編號(hào) |
categoriesguid |
企業(yè)類別 |
請(qǐng)求格式:
{
"MerchantsID":"",
"categoriesguid": ""
}
返回參數(shù)和描述:
字段名 |
備注 |
merchantsid |
入駐企業(yè)編號(hào) |
merchantsname |
企業(yè)名稱 |
photosname |
企業(yè)照片 |
categoriesname |
企業(yè)類別 |
tel |
企業(yè)電話號(hào)碼 |
address |
企業(yè)地址 |
x |
x坐標(biāo) |
y |
y坐標(biāo) |
minconsumption |
起送金額 |
BusinessHours |
營(yíng)業(yè)時(shí)間 |
is_distribution |
是否支持配送 |
distribution_message |
商家配送信息 |
announcement_message |
商家公告消息 |
evaluate_start_all |
總評(píng)分 |
evaluate_start_taste |
口味評(píng)分 |
evaluate_start_package |
包裝評(píng)分 |
evaluate_start_distribution |
配送評(píng)分 |
action_kind |
活動(dòng)類別 |
action_message |
活動(dòng)信息 |
返回格式:
{
[
{
"merchantsid": "0001",
"merchantsname": "玉樹三和小炒",
"photosname": "1.jpg",
"categoriesname": "餐飲服務(wù)",
"tel": "052-5239746",
"address": "紅衛(wèi)路81號(hào)",
"x": null,
"y": null,
"minconsumption": 40,
"businesshours": "9:00--22:00",
"is_distribution": 1,
"distribution_message": "我們將盡快配送",
"announcement_message": "本店40元起送",
"lstSERVER_EVALUATE_START": [
{
"evaluate_start_taste": 5,
"evaluate_start_all": 5,
"evaluate_start_package": 5,
"evaluate_start_distribution": 5
}
],
"lstSERVER_ACTION_MESSAGE": [
{
"action_kind": "優(yōu)惠活動(dòng)",
"action_message": "所有一律9折"
}
]
}
]
}
3. 獲取便民服務(wù)大類(新增)
請(qǐng)求方式:Get
功能:獲取各企業(yè)提供的服務(wù)(包括商品)
請(qǐng)求路徑:http://192.168.1.151:10007/Handler/Getdict_Categories_Service.ashx
請(qǐng)求參數(shù):無參
返回參數(shù)和描述:
字段名 |
備注 |
Categoriesguid |
ID |
Categoriesname |
父類名稱 |
Parentcategoriesguid |
父級(jí)ID |
ChildTree |
子類 |
返回格式:
{
"result": [
{
"CATEGORIESGUID": "0005",
"CATEGORIESNAME": "賓館住宿",
"PARENTCATEGORIESGUID": "-1",
"ChildTree": [
{
"CATEGORIESGUID": "0005001",
"CATEGORIESNAME": "經(jīng)濟(jì)型",
"PARENTCATEGORIESGUID": "0005",
"ChildTree": []
},
{
"CATEGORIESGUID": "0005002",
"CATEGORIESNAME": "三星/舒適",
"PARENTCATEGORIESGUID": "0005",
"ChildTree": []
},
{
"CATEGORIESGUID": "0005003",
"CATEGORIESNAME": "四星/高檔",
"PARENTCATEGORIESGUID": "0005",
"ChildTree": []
},
{
"CATEGORIESGUID": "0005004",
"CATEGORIESNAME": "五星/豪華",
"PARENTCATEGORIESGUID": "0005",
"ChildTree": []
}
]
},
{
"CATEGORIESGUID": "0006",
"CATEGORIESNAME": "醫(yī)療藥店",
"PARENTCATEGORIESGUID": "-1",
"ChildTree": [
{
"CATEGORIESGUID": "0006001",
"CATEGORIESNAME": "藥店",
"PARENTCATEGORIESGUID": "0006",
"ChildTree": []
},
{
"CATEGORIESGUID": "0006002",
"CATEGORIESNAME": "寵物醫(yī)院",
"PARENTCATEGORIESGUID": "0006",
"ChildTree": []
},
{
"CATEGORIESGUID": "0006003",
"CATEGORIESNAME": "個(gè)體門診",
"PARENTCATEGORIESGUID": "0006",
"ChildTree": []
}
]
}
]
}
4.