This commit is contained in:
苏尹岚
2020-12-02 17:08:35 +08:00
parent c8c7dbf38e
commit 0f561dc394
5 changed files with 97 additions and 0 deletions

View File

@@ -321,3 +321,23 @@ func (c *JobController) CheckJdDeliveryWeight() {
return retVal, "", err
})
}
// @Title 获取油站列表
// @Description 获取油站列表
// @Param token header string true "认证token"
// @Param stationName query string false "油站名"
// @Param cityCode query int false "城市ID"
// @Param lat query float64 false "用户坐标"
// @Param lng query float64 false "用户坐标"
// @Param sortType query int false "排序, 1为距离2为评分"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"
// @Param pageSize query int false "门店列表页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetStationList [get]
func (c *JobController) GetStationList() {
c.callGetStationList(func(params *tJobGetStationListParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetStationList(params.Ctx, params.StationName, params.CityCode, params.Lat, params.Lng, params.SortType, params.Offset, params.PageSize)
return retVal, "", err
})
}