| | |
| | | |
| | | @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); |
| | | } |
| | |
| | | |
| | | @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); |
| | | } |
| | | |
| | | |