| | |
| | | * @author rk |
| | | * @date 2026/04/10 |
| | | */ |
| | | @Api(tags = "门店入驻") |
| | | @Api(tags = "门店业务接口") |
| | | @RestController |
| | | @RequestMapping("/web/shopInfo") |
| | | public class ShopInfoApi extends ApiController { |
| | |
| | | return ApiResponse.success(shopInfoService.getMyShop(this.getMemberId())); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("附近门店分页列表") |
| | | @PostMapping("/nearby") |
| | | public ApiResponse<PageData<ShopNearbyVO>> nearby(@RequestBody @Validated PageWrap<ShopNearbyDTO> pageWrap) { |
| | |
| | | } |
| | | |
| | | @LoginShopRequired |
| | | @ApiOperation("门店端查询门店详情") |
| | | @GetMapping("/shopDetail") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "门店token值", required = true) |
| | | }) |
| | | public ApiResponse<ShopDetailVO> shopDetail() { |
| | | return ApiResponse.success("查询成功", shopInfoService.getShopDetail(getShopId())); |
| | | } |
| | | |
| | | @LoginShopRequired |
| | | @ApiOperation("门店销售统计") |
| | | @GetMapping("/salesStats") |
| | | @ApiImplicitParams({ |
| | |
| | | @ApiOperation("维护门店信息(支付押金后)") |
| | | @PostMapping("/maintain") |
| | | public ApiResponse maintain(@RequestBody ShopInfoMaintainDTO dto) { |
| | | shopInfoService.maintainShopInfo(this.getMemberId(), dto); |
| | | shopInfoService.maintainShopInfo(this.getShopId(), dto); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | |
| | | @ApiOperation("查询门店维护信息") |
| | | @PostMapping("/maintainInfo") |
| | | public ApiResponse<ShopInfoMaintainDTO> maintainInfo() { |
| | | return ApiResponse.success(shopInfoService.getShopMaintainInfo(this.getMemberId())); |
| | | return ApiResponse.success(shopInfoService.getShopMaintainInfo(this.getShopId())); |
| | | } |
| | | |
| | | @LoginRequired |