zhibing.pu
2024-08-08 b5aba60916c0e815b33b1eb40c85d631eeb2fbc3
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/PartnerController.java
@@ -48,11 +48,11 @@
   
   @ResponseBody
   @GetMapping("/getPartner/{id}")
   @ApiOperation(value = "添加合作商", tags = {"管理后台-合作商列表"})
   @ApiOperation(value = "获取合作商详情", tags = {"管理后台-合作商列表"})
   @ApiImplicitParams({
         @ApiImplicitParam(value = "合作商id", name = "id", dataTypeClass = Integer.class, required = true)
   })
   public AjaxResult<Partner> getPartner(@PathVariable @RequestParam Integer id){
   public AjaxResult<Partner> getPartner(@PathVariable Integer id){
      Partner partner = partnerService.getPartner(id);
      return AjaxResult.success(partner);
   }
@@ -70,13 +70,12 @@
   
   @ResponseBody
   @DeleteMapping("/delPartner/{id}")
   @ApiOperation(value = "编辑合作商", tags = {"管理后台-合作商列表"})
   @ApiOperation(value = "删除合作商", tags = {"管理后台-合作商列表"})
   @ApiImplicitParams({
         @ApiImplicitParam(value = "合作商id", name = "id", dataTypeClass = Integer.class, required = true)
   })
   public AjaxResult delPartner(@PathVariable @RequestParam Integer id){
      partnerService.delPartner(id);
      return AjaxResult.success();
   public AjaxResult delPartner(@PathVariable("id") Integer id){
      return partnerService.delPartner(id);
   }