|
|
@ -9,6 +9,8 @@ import com.ruoyi.common.core.domain.entity.SysUser; |
|
|
|
import com.ruoyi.dhc.domain.DhcDataAuth; |
|
|
|
import com.ruoyi.dhc.domain.DhcDataAuth; |
|
|
|
import com.ruoyi.dhc.domain.DhcDataAuthDetail; |
|
|
|
import com.ruoyi.dhc.domain.DhcDataAuthDetail; |
|
|
|
import com.ruoyi.dhc.service.IDhcDataAuthService; |
|
|
|
import com.ruoyi.dhc.service.IDhcDataAuthService; |
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
@ -32,6 +34,7 @@ import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
* @author ruoyi |
|
|
|
* @author ruoyi |
|
|
|
* @date 2024-08-01 |
|
|
|
* @date 2024-08-01 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Api(tags = "数据权限") |
|
|
|
@RestController |
|
|
|
@RestController |
|
|
|
@RequestMapping("/dhc/authData") |
|
|
|
@RequestMapping("/dhc/authData") |
|
|
|
public class DhcDataAuthController extends BaseController |
|
|
|
public class DhcDataAuthController extends BaseController |
|
|
@ -42,6 +45,7 @@ public class DhcDataAuthController extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 查询数据权限列表 |
|
|
|
* 查询数据权限列表 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("查询数据权限列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:list')") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:list')") |
|
|
|
@GetMapping("/list") |
|
|
|
@GetMapping("/list") |
|
|
|
public TableDataInfo list(DhcDataAuth dhcDataAuth) |
|
|
|
public TableDataInfo list(DhcDataAuth dhcDataAuth) |
|
|
@ -54,6 +58,7 @@ public class DhcDataAuthController extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 导出数据权限列表 |
|
|
|
* 导出数据权限列表 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("导出数据权限列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:export')") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:export')") |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.EXPORT) |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.EXPORT) |
|
|
|
@PostMapping("/export") |
|
|
|
@PostMapping("/export") |
|
|
@ -67,6 +72,7 @@ public class DhcDataAuthController extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取数据权限详细信息 |
|
|
|
* 获取数据权限详细信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("获取数据权限详细信息") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:query')") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:query')") |
|
|
|
@GetMapping(value = "/{dataAuthId}") |
|
|
|
@GetMapping(value = "/{dataAuthId}") |
|
|
|
public AjaxResult getInfo(@PathVariable("dataAuthId") Long dataAuthId) |
|
|
|
public AjaxResult getInfo(@PathVariable("dataAuthId") Long dataAuthId) |
|
|
@ -77,6 +83,7 @@ public class DhcDataAuthController extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 新增数据权限 |
|
|
|
* 新增数据权限 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("新增数据权限") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:add')") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:add')") |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping |
|
|
|
@PostMapping |
|
|
@ -88,6 +95,7 @@ public class DhcDataAuthController extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 修改数据权限 |
|
|
|
* 修改数据权限 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("修改数据权限") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:edit')") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:edit')") |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.UPDATE) |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.UPDATE) |
|
|
|
@PutMapping |
|
|
|
@PutMapping |
|
|
@ -96,6 +104,7 @@ public class DhcDataAuthController extends BaseController |
|
|
|
return toAjax(dhcDataAuthService.updateDhcDataAuth(dhcDataAuth)); |
|
|
|
return toAjax(dhcDataAuthService.updateDhcDataAuth(dhcDataAuth)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("数据权限") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:add')") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:add')") |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping("batchAdd") |
|
|
|
@PostMapping("batchAdd") |
|
|
@ -107,6 +116,7 @@ public class DhcDataAuthController extends BaseController |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 删除数据权限 |
|
|
|
* 删除数据权限 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("删除数据权限") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:remove')") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:remove')") |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.DELETE) |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("/{dataAuthIds}") |
|
|
|
@DeleteMapping("/{dataAuthIds}") |
|
|
@ -114,9 +124,11 @@ public class DhcDataAuthController extends BaseController |
|
|
|
{ |
|
|
|
{ |
|
|
|
return toAjax(dhcDataAuthService.deleteDhcDataAuthByDataAuthIds(dataAuthIds)); |
|
|
|
return toAjax(dhcDataAuthService.deleteDhcDataAuthByDataAuthIds(dataAuthIds)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 批量删除数据权限 |
|
|
|
* 批量删除数据权限 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation("批量删除数据权限") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:remove')") |
|
|
|
@PreAuthorize("@ss.hasPermi('dhc:authData:remove')") |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.DELETE) |
|
|
|
@Log(title = "数据权限", businessType = BusinessType.DELETE) |
|
|
|
@PostMapping(value = "/removeBatch") |
|
|
|
@PostMapping(value = "/removeBatch") |
|
|
|