小程序专用接口入参限制修改为5位数字开头

This commit is contained in:
gaoqr
2026-06-02 10:20:25 +08:00
parent 6ba45874a1
commit d501c45262
@@ -163,21 +163,21 @@ public class PlateController {
return success(plateService.getBodyViewPartCadInfo(orderCadViewPlatePageReqVO)); return success(plateService.getBodyViewPartCadInfo(orderCadViewPlatePageReqVO));
} }
@GetMapping("/wechat/miniprogram/cadview/info/{plateNo:[A-Fa-f0-9]{6}[A-Za-z0-9]{11}}") @GetMapping("/wechat/miniprogram/cadview/info/{plateNo:\\d{5}[A-Za-z0-9]{11}}")
@Operation(summary = "微信小程序根据板编号获取单板视图信息") @Operation(summary = "微信小程序根据板编号获取单板视图信息")
@Parameter(name = "plateNo", description = "板编号", required = true) @Parameter(name = "plateNo", description = "板编号", required = true)
public CommonResult<OrderPlateWechatMiniProgramCadInfoRespVO> getPlateInfoByPlateNo(@PathVariable String plateNo) { public CommonResult<OrderPlateWechatMiniProgramCadInfoRespVO> getPlateInfoByPlateNo(@PathVariable String plateNo) {
return success(plateService.getPlateInfoByPlateNo(plateNo)); return success(plateService.getPlateInfoByPlateNo(plateNo));
} }
@GetMapping("/wechat/miniprogram/cadview/order/info/{plateNo:[A-Fa-f0-9]{6}[A-Za-z0-9]{11}}") @GetMapping("/wechat/miniprogram/cadview/order/info/{plateNo:\\d{5}[A-Za-z0-9]{11}}")
@Operation(summary = "微信小程序根据板编号获取单板所属订单信息") @Operation(summary = "微信小程序根据板编号获取单板所属订单信息")
@Parameter(name = "plateNo", description = "板编号", required = true) @Parameter(name = "plateNo", description = "板编号", required = true)
public CommonResult<OrderWechatMiniProgramCadInfoRespVO> getOrderInfoByPlateNo(@PathVariable String plateNo) { public CommonResult<OrderWechatMiniProgramCadInfoRespVO> getOrderInfoByPlateNo(@PathVariable String plateNo) {
return success(plateService.getOrderInfoByPlateNo(plateNo)); return success(plateService.getOrderInfoByPlateNo(plateNo));
} }
@PostMapping("/wechat/miniprogram/cadview/order/details/{plateNo:[A-Fa-f0-9]{6}[A-Za-z0-9]{11}}") @PostMapping("/wechat/miniprogram/cadview/order/details/{plateNo:\\d{5}[A-Za-z0-9]{11}}")
@Operation(summary = "微信小程序根据板编号获取订单详情") @Operation(summary = "微信小程序根据板编号获取订单详情")
@Parameter(name = "plateNo", description = "板编号", required = true) @Parameter(name = "plateNo", description = "板编号", required = true)
public CommonResult<OrdersViewCadViewInfoRespVO> getOrderDetailsByPlateNo(@PathVariable String plateNo, @Valid @RequestBody OrderWechatMiniProgramDetailReqVO reqVO) { public CommonResult<OrdersViewCadViewInfoRespVO> getOrderDetailsByPlateNo(@PathVariable String plateNo, @Valid @RequestBody OrderWechatMiniProgramDetailReqVO reqVO) {