|
@@ -12,10 +12,7 @@ import io.swagger.annotations.ApiResponse;
|
|
import io.swagger.annotations.ApiResponses;
|
|
import io.swagger.annotations.ApiResponses;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author : lingfeng
|
|
* @author : lingfeng
|
|
@@ -37,4 +34,20 @@ public class PayBoxController {
|
|
public ResultVO<IPage<PayBoxListVO>> list(@Validated @RequestBody PayBoxListParam param) {
|
|
public ResultVO<IPage<PayBoxListVO>> list(@Validated @RequestBody PayBoxListParam param) {
|
|
return new ResultVO<>(payBoxService.pageList(param));
|
|
return new ResultVO<>(payBoxService.pageList(param));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "支付盒子删除")
|
|
|
|
+ @DeleteMapping(value = "/delete")
|
|
|
|
+ @PreAuthorize(permissionKey = "manage:payBox:delete")
|
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|
|
|
|
+ public ResultVO<Boolean> deleteById(@RequestParam Long id) {
|
|
|
|
+ return new ResultVO<>(payBoxService.deleteById(id));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "支付盒子状态变更")
|
|
|
|
+ @PatchMapping(value = "/status/update")
|
|
|
|
+ @PreAuthorize(permissionKey = "manage:payBox:statusUpdate")
|
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|
|
|
|
+ public ResultVO<Boolean> statusUpdate(@RequestParam Long id, @RequestParam Integer status) {
|
|
|
|
+ return new ResultVO<>(payBoxService.statusUpdate(id, status));
|
|
|
|
+ }
|
|
}
|
|
}
|