|
@@ -4,7 +4,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.lantone.common.api.CommonResult;
|
|
import com.lantone.common.api.CommonResult;
|
|
import com.lantone.common.dto.DataAuthDTO;
|
|
import com.lantone.common.dto.DataAuthDTO;
|
|
import com.lantone.common.dto.DoctorDTO;
|
|
import com.lantone.common.dto.DoctorDTO;
|
|
-import com.lantone.common.vo.HospitalVO;
|
|
|
|
|
|
+import com.lantone.common.vo.DataAuthVO;
|
|
|
|
+import com.lantone.common.vo.DoctorVO;
|
|
import com.lantone.common.vo.ServiceDataAuthVO;
|
|
import com.lantone.common.vo.ServiceDataAuthVO;
|
|
import com.lantone.security.facade.DataAuthHandleFacade;
|
|
import com.lantone.security.facade.DataAuthHandleFacade;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -15,7 +16,6 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
-import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @ClassName: DataAuthController
|
|
* @ClassName: DataAuthController
|
|
@@ -25,7 +25,7 @@ import springfox.documentation.annotations.ApiIgnore;
|
|
* @Version 1.0
|
|
* @Version 1.0
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
-@Api(value = "数据权限API", tags = { "数据权限API" })
|
|
|
|
|
|
+@Api( value = "数据权限API",tags = "DataAuthController")
|
|
@RequestMapping("/data/auth")
|
|
@RequestMapping("/data/auth")
|
|
public class DataAuthController {
|
|
public class DataAuthController {
|
|
@Autowired
|
|
@Autowired
|
|
@@ -36,7 +36,6 @@ public class DataAuthController {
|
|
"roles:角色列表,必填<br>" +
|
|
"roles:角色列表,必填<br>" +
|
|
"type:操作码 1:新增;2:修改 ;3:删除;5:启用禁用")
|
|
"type:操作码 1:新增;2:修改 ;3:删除;5:启用禁用")
|
|
@PostMapping("/addAuth")
|
|
@PostMapping("/addAuth")
|
|
- @ApiIgnore
|
|
|
|
@Transactional
|
|
@Transactional
|
|
public CommonResult<Boolean> addAuth(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
public CommonResult<Boolean> addAuth(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
return CommonResult.success(dataAuthHandleFacade.CRUDOperation(serviceDataAuthVO));
|
|
return CommonResult.success(dataAuthHandleFacade.CRUDOperation(serviceDataAuthVO));
|
|
@@ -47,7 +46,6 @@ public class DataAuthController {
|
|
"roles:角色列表,必填<br>" +
|
|
"roles:角色列表,必填<br>" +
|
|
"type:操作码 1:新增;2:修改;3:删除;5:启用禁用")
|
|
"type:操作码 1:新增;2:修改;3:删除;5:启用禁用")
|
|
@PostMapping("/updateAuth")
|
|
@PostMapping("/updateAuth")
|
|
- @ApiIgnore
|
|
|
|
@Transactional
|
|
@Transactional
|
|
public CommonResult<Boolean> updateAuth(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
public CommonResult<Boolean> updateAuth(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
return CommonResult.success(dataAuthHandleFacade.CRUDOperation(serviceDataAuthVO));
|
|
return CommonResult.success(dataAuthHandleFacade.CRUDOperation(serviceDataAuthVO));
|
|
@@ -57,7 +55,6 @@ public class DataAuthController {
|
|
"roles:角色列表,必填<br>" +
|
|
"roles:角色列表,必填<br>" +
|
|
"type:操作码 1:新增;2:修改;3:删除;5:启用禁用")
|
|
"type:操作码 1:新增;2:修改;3:删除;5:启用禁用")
|
|
@PostMapping("/disableAuth")
|
|
@PostMapping("/disableAuth")
|
|
- @ApiIgnore
|
|
|
|
@Transactional
|
|
@Transactional
|
|
public CommonResult<Boolean> disableAuth(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
public CommonResult<Boolean> disableAuth(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
return CommonResult.success(dataAuthHandleFacade.CRUDOperation(serviceDataAuthVO));
|
|
return CommonResult.success(dataAuthHandleFacade.CRUDOperation(serviceDataAuthVO));
|
|
@@ -68,7 +65,6 @@ public class DataAuthController {
|
|
"roles:角色列表,必填<br>" +
|
|
"roles:角色列表,必填<br>" +
|
|
"type:操作码 1:新增;2:修改;3:删除;5:启用禁用")
|
|
"type:操作码 1:新增;2:修改;3:删除;5:启用禁用")
|
|
@PostMapping("/deleteAuth")
|
|
@PostMapping("/deleteAuth")
|
|
- @ApiIgnore
|
|
|
|
@Transactional
|
|
@Transactional
|
|
public CommonResult<Boolean> deleteAuth(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
public CommonResult<Boolean> deleteAuth(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
return CommonResult.success(dataAuthHandleFacade.CRUDOperation(serviceDataAuthVO));
|
|
return CommonResult.success(dataAuthHandleFacade.CRUDOperation(serviceDataAuthVO));
|
|
@@ -79,19 +75,24 @@ public class DataAuthController {
|
|
"roles:角色列表,必填<br>" +
|
|
"roles:角色列表,必填<br>" +
|
|
"type:操作码 1:新增;2:修改;3:删除;5:启用禁用")
|
|
"type:操作码 1:新增;2:修改;3:删除;5:启用禁用")
|
|
@PostMapping("/getDataAuthById")
|
|
@PostMapping("/getDataAuthById")
|
|
- @ApiIgnore
|
|
|
|
public CommonResult<DataAuthDTO> getDataAuthById(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
public CommonResult<DataAuthDTO> getDataAuthById(@RequestBody ServiceDataAuthVO serviceDataAuthVO) {
|
|
return CommonResult.success(dataAuthHandleFacade.getDataAuthById(serviceDataAuthVO));
|
|
return CommonResult.success(dataAuthHandleFacade.getDataAuthById(serviceDataAuthVO));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- @ApiOperation(value = "通过医院id或科室id获取医生列表[by:songxl]",
|
|
|
|
|
|
+ @ApiOperation(value = "获取医生列表[by:songxl]",
|
|
notes = "id:医院编号,必填<br>" +
|
|
notes = "id:医院编号,必填<br>" +
|
|
- "roles:角色列表,必填<br>" +
|
|
|
|
- "type:操作码 1:新增;2:修改;3:删除;5:启用禁用")
|
|
|
|
|
|
+ "depts:该医院的科室列表" )
|
|
@PostMapping("/getDoctorPage")
|
|
@PostMapping("/getDoctorPage")
|
|
- @ApiIgnore
|
|
|
|
- public CommonResult<IPage<DoctorDTO>> getDoctorPage(@RequestBody HospitalVO hospitalVO) {
|
|
|
|
- return CommonResult.success(dataAuthHandleFacade.getDoctorPage(hospitalVO));
|
|
|
|
|
|
+ public CommonResult<IPage<DoctorDTO>> getDoctorPage(@RequestBody DoctorVO doctorVO) {
|
|
|
|
+ return CommonResult.success(dataAuthHandleFacade.getDoctorPage(doctorVO));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "获取数据权限列表[by:songxl]",
|
|
|
|
+ notes = "id:医院编号,必填<br>" +
|
|
|
|
+ "depts:该医院的科室列表" )
|
|
|
|
+ @PostMapping("/getDataAuthPage")
|
|
|
|
+ public CommonResult<IPage<DataAuthDTO>> getDataAuthPage(@RequestBody DataAuthVO dataAuthVO) {
|
|
|
|
+ return CommonResult.success(dataAuthHandleFacade.getDataAuthPage(dataAuthVO));
|
|
}
|
|
}
|
|
}
|
|
}
|