|
|
@@ -8,6 +8,7 @@ import com.ktg.common.core.controller.BaseController;
|
|
|
import com.ktg.common.enums.BusinessType;
|
|
|
import com.ktg.common.pojo.CommonResult;
|
|
|
import com.ktg.iscs.domain.IsBlacklist;
|
|
|
+import com.ktg.iscs.domain.vo.user.WhiteUserVO;
|
|
|
import com.ktg.iscs.service.IIsBlacklistService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -18,6 +19,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 黑名单关联Controller
|
|
|
@@ -46,14 +48,27 @@ public class IsBlacklistController extends BaseController
|
|
|
return CommonResult.success(result);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("查询白名单-分页")
|
|
|
+ @Parameters({
|
|
|
+ @Parameter(name = "page", description = "Page"),
|
|
|
+ @Parameter(name = "isBlacklist", description = "实体参数")
|
|
|
+ })
|
|
|
+ @PreAuthorize("@ss.hasPermi('iscs:blacklist:list')")
|
|
|
+ @GetMapping("/getWhiteUserPage")
|
|
|
+ public CommonResult<Page<WhiteUserVO>> getWhiteUserPage(Page page, WhiteUserVO dto)
|
|
|
+ {
|
|
|
+ Page<WhiteUserVO> result = isBlacklistService.getWhiteUserPage(page, dto);
|
|
|
+ return CommonResult.success(result);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@ApiOperation("新增黑名单关联")
|
|
|
@PreAuthorize("@ss.hasPermi('iscs:blacklist:add')")
|
|
|
@Log(title = "黑名单关联", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/insertIsBlacklist")
|
|
|
- public CommonResult<Boolean> insertIsBlacklist(@RequestBody @Parameter(name = "isBlacklist", description = "新增数据类,放到body") IsBlacklist isBlacklist)
|
|
|
+ public CommonResult<Boolean> insertIsBlacklist(@RequestBody @Parameter(name = "isBlacklist", description = "新增数据类,放到body") List<IsBlacklist> isBlacklist)
|
|
|
{
|
|
|
- return CommonResult.success(isBlacklistService.save(isBlacklist));
|
|
|
+ return CommonResult.success(isBlacklistService.insertIsBlacklist(isBlacklist));
|
|
|
}
|
|
|
|
|
|
@ApiOperation("删除黑名单关联")
|