aa
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user