feat(IP白名单控制器修改权限):

This commit is contained in:
fuhao 2024-09-04 19:22:31 +08:00
parent 7446520dd4
commit 6683dde126
No known key found for this signature in database
1 changed files with 7 additions and 7 deletions

View File

@ -22,7 +22,7 @@ import java.util.List;
* @date 2024-09-04
*/
@RestController
@RequestMapping("/white/ip")
@RequestMapping("/board/whiteIp")
public class PubWhiteIpController extends BaseController {
@Autowired
private IPubWhiteIpService pubWhiteIpService;
@ -30,7 +30,7 @@ public class PubWhiteIpController extends BaseController {
/**
* 查询发布源白名单列表
*/
@PreAuthorize("@ss.hasPermi('white:ip:list')")
@PreAuthorize("@ss.hasPermi('board:whiteIp:list')")
@GetMapping("/list")
public TableDataInfo list(PubWhiteIp pubWhiteIp) {
startPage();
@ -41,7 +41,7 @@ public class PubWhiteIpController extends BaseController {
/**
* 导出发布源白名单列表
*/
@PreAuthorize("@ss.hasPermi('white:ip:export')")
@PreAuthorize("@ss.hasPermi('board:whiteIp:export')")
@Log(title = "发布源白名单", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PubWhiteIp pubWhiteIp) {
@ -53,7 +53,7 @@ public class PubWhiteIpController extends BaseController {
/**
* 获取发布源白名单详细信息
*/
@PreAuthorize("@ss.hasPermi('white:ip:query')")
@PreAuthorize("@ss.hasPermi('board:whiteIp:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(pubWhiteIpService.getById(id));
@ -62,7 +62,7 @@ public class PubWhiteIpController extends BaseController {
/**
* 新增发布源白名单
*/
@PreAuthorize("@ss.hasPermi('white:ip:add')")
@PreAuthorize("@ss.hasPermi('board:whiteIp:add')")
@Log(title = "发布源白名单", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PubWhiteIp pubWhiteIp) {
@ -72,7 +72,7 @@ public class PubWhiteIpController extends BaseController {
/**
* 修改发布源白名单
*/
@PreAuthorize("@ss.hasPermi('white:ip:edit')")
@PreAuthorize("@ss.hasPermi('board:whiteIp:edit')")
@Log(title = "发布源白名单", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PubWhiteIp pubWhiteIp) {
@ -82,7 +82,7 @@ public class PubWhiteIpController extends BaseController {
/**
* 删除发布源白名单
*/
@PreAuthorize("@ss.hasPermi('white:ip:remove')")
@PreAuthorize("@ss.hasPermi('board:whiteIp:remove')")
@Log(title = "发布源白名单", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable List<Long> ids) {