修改用户充值卡controller的权限

This commit is contained in:
ALEI_ALEI
2024-12-19 23:41:10 +08:00
parent b2063072a4
commit 8d5e792fb6

View File

@ -41,7 +41,7 @@ public class UserRechargeCardsController extends BaseController
/** /**
* 测试 * 测试
*/ */
@PreAuthorize("@ss.hasPermi('rechargecard:cards:query')")
@GetMapping(value = "/test/{id}") @GetMapping(value = "/test/{id}")
@ApiOperation("获取用户充值卡详细信息") @ApiOperation("获取用户充值卡详细信息")
public AjaxResult test(@PathVariable("id") Long id) public AjaxResult test(@PathVariable("id") Long id)
@ -53,7 +53,7 @@ public class UserRechargeCardsController extends BaseController
/** /**
* 查询用户充值卡列表 * 查询用户充值卡列表
*/ */
@PreAuthorize("@ss.hasPermi('rechargecard:cards:list')")
@GetMapping("/list") @GetMapping("/list")
@ApiOperation("查询用户充值卡列表") @ApiOperation("查询用户充值卡列表")
public TableDataInfo list(UserRechargeCards userRechargeCards) public TableDataInfo list(UserRechargeCards userRechargeCards)
@ -67,7 +67,7 @@ public class UserRechargeCardsController extends BaseController
* 导出用户充值卡列表 * 导出用户充值卡列表
*/ */
@ApiOperation("导出用户充值卡列表") @ApiOperation("导出用户充值卡列表")
@PreAuthorize("@ss.hasPermi('rechargecard:cards:export')")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, UserRechargeCards userRechargeCards) public void export(HttpServletResponse response, UserRechargeCards userRechargeCards)
{ {
@ -79,7 +79,7 @@ public class UserRechargeCardsController extends BaseController
/** /**
* 获取用户充值卡详细信息 * 获取用户充值卡详细信息
*/ */
@PreAuthorize("@ss.hasPermi('rechargecard:cards:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
@ApiOperation("获取用户充值卡详细信息") @ApiOperation("获取用户充值卡详细信息")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
@ -91,7 +91,7 @@ public class UserRechargeCardsController extends BaseController
/** /**
* 新增用户充值卡 * 新增用户充值卡
*/ */
@PreAuthorize("@ss.hasPermi('rechargecard:cards:add')")
@PostMapping @PostMapping
@ApiOperation("新增用户充值卡") @ApiOperation("新增用户充值卡")
public AjaxResult add(@RequestBody UserRechargeCards userRechargeCards) public AjaxResult add(@RequestBody UserRechargeCards userRechargeCards)
@ -102,7 +102,7 @@ public class UserRechargeCardsController extends BaseController
/** /**
* 修改用户充值卡 * 修改用户充值卡
*/ */
@PreAuthorize("@ss.hasPermi('rechargecard:cards:edit')")
@PutMapping @PutMapping
@ApiOperation("修改用户充值卡") @ApiOperation("修改用户充值卡")
public AjaxResult edit(@RequestBody UserRechargeCards userRechargeCards) public AjaxResult edit(@RequestBody UserRechargeCards userRechargeCards)
@ -113,7 +113,7 @@ public class UserRechargeCardsController extends BaseController
/** /**
* 删除用户充值卡 * 删除用户充值卡
*/ */
@PreAuthorize("@ss.hasPermi('rechargecard:cards:remove')")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
@ApiOperation("删除用户充值卡") @ApiOperation("删除用户充值卡")
public AjaxResult remove(@PathVariable Long id) public AjaxResult remove(@PathVariable Long id)