mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
充值活动接口权限串检查移除
This commit is contained in:
-6
@@ -11,7 +11,6 @@ import com.cf.imes.module.system.service.funds.recharge.RechargeActiveService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -31,14 +30,12 @@ public class RechargeActiveController {
|
||||
|
||||
@PutMapping("")
|
||||
@Operation(summary = "新建充值活动")
|
||||
@PreAuthorize("@ss.hasPermission('base:recharge-active:create')")
|
||||
public CommonResult<Long> createRechargeActive(@Valid @RequestBody RechargeSaveReqVO createReqVO) {
|
||||
return success(productsService.create(createReqVO));
|
||||
}
|
||||
|
||||
@PostMapping("")
|
||||
@Operation(summary = "更新充值活动")
|
||||
@PreAuthorize("@ss.hasPermission('base:recharge-active:update')")
|
||||
public CommonResult<Boolean> updateRechargeActive(@Valid @RequestBody RechargeSaveReqVO updateReqVO) {
|
||||
productsService.update(updateReqVO);
|
||||
return success(true);
|
||||
@@ -47,7 +44,6 @@ public class RechargeActiveController {
|
||||
@DeleteMapping("/{id}")
|
||||
@Operation(summary = "删除充值活动")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:recharge-active:delete')")
|
||||
public CommonResult<Boolean> deleteRechargeActive(@PathVariable("id") Long id) {
|
||||
productsService.delete(id);
|
||||
return success(true);
|
||||
@@ -56,7 +52,6 @@ public class RechargeActiveController {
|
||||
@GetMapping("/{id}")
|
||||
@Operation(summary = "获取充值活动")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:recharge-active:query')")
|
||||
public CommonResult<RechargeRespVO> getRechargeActive(@PathVariable("id") Long id) {
|
||||
GiftMoneyDetailsDO giftMoneyDetailsDO = productsService.get(id);
|
||||
return success(BeanUtils.toBean(giftMoneyDetailsDO, RechargeRespVO.class));
|
||||
@@ -64,7 +59,6 @@ public class RechargeActiveController {
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获取充值活动分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:recharge-active:query')")
|
||||
public CommonResult<PageResult<RechargeRespVO>> getRechargeActivePage(@Valid RechargePageReqVO pageReqVO) {
|
||||
PageResult<GiftMoneyDetailsDO> pageResult = productsService.getPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, RechargeRespVO.class));
|
||||
|
||||
Reference in New Issue
Block a user