feat(IP白名单控制器修改权限):
This commit is contained in:
parent
7446520dd4
commit
6683dde126
|
@ -22,7 +22,7 @@ import java.util.List;
|
||||||
* @date 2024-09-04
|
* @date 2024-09-04
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/white/ip")
|
@RequestMapping("/board/whiteIp")
|
||||||
public class PubWhiteIpController extends BaseController {
|
public class PubWhiteIpController extends BaseController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private IPubWhiteIpService pubWhiteIpService;
|
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")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(PubWhiteIp pubWhiteIp) {
|
public TableDataInfo list(PubWhiteIp pubWhiteIp) {
|
||||||
startPage();
|
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)
|
@Log(title = "发布源白名单", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, PubWhiteIp pubWhiteIp) {
|
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}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
return success(pubWhiteIpService.getById(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)
|
@Log(title = "发布源白名单", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody PubWhiteIp pubWhiteIp) {
|
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)
|
@Log(title = "发布源白名单", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody PubWhiteIp pubWhiteIp) {
|
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)
|
@Log(title = "发布源白名单", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable List<Long> ids) {
|
public AjaxResult remove(@PathVariable List<Long> ids) {
|
||||||
|
|
Loading…
Reference in New Issue