| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | |
| | | */ |
| | | @ApiOperation(value = "获取附近上车站点",tags = {"小程序-附近上车站点"},response = XpPoint.class) |
| | | @PostMapping("/base/v1/mini-program/pickup/nearest") |
| | | public R<NearestVo> nearest(@RequestBody @Valid NearestDto dto) { |
| | | return R.ok(xpPointService.nearest(dto)); |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | public R<NearestVo> nearest(@RequestBody @Valid NearestDto dto, HttpServletRequest request) { |
| | | // uid已通过拦截器otp校验,可以直接使用 |
| | | String uid = request.getHeader("XP-Uid"); |
| | | return R.ok(xpPointService.nearest(dto, uid)); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | @ApiOperation(value = "根据名称poi获取点位列表",tags = {"小程序-根据名称获取点位列表"},response = XpPoint.class) |
| | | @PostMapping("/base/v1/mini-program/xp-point/queryPointByName") |
| | | public R<XpPointsSearchVo> listAll(@RequestBody @Valid PointByNameQuery query) { |
| | | XpPointsSearchVo vo = xpPointService.queryPointByName(query); |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | public R<XpPointsSearchVo> listAll(@RequestBody @Valid PointByNameQuery query, HttpServletRequest request) { |
| | | String uid = request.getHeader("XP-Uid"); |
| | | XpPointsSearchVo vo = xpPointService.queryPointByName(query, uid); |
| | | return R.ok(vo); |
| | | } |
| | | |