|
@@ -4,6 +4,7 @@ import com.dragoninfo.dcuc.auth.auth.dto.AppDataSensitiveLevelDTO;
|
|
|
import com.dragoninfo.dcuc.auth.auth.dto.StaffAssignDTO;
|
|
|
import com.dragoninfo.dcuc.auth.auth.dto.StaffRoleOperateDTO;
|
|
|
import com.dragoninfo.dcuc.auth.auth.entity.StaffAssignAuthInfo;
|
|
|
+import com.dragoninfo.dcuc.auth.auth.vo.ApiAppAuthVo;
|
|
|
import com.dragoninfo.dcuc.auth.auth.vo.StaffRoleAuthApiVo;
|
|
|
import com.dragoninfo.dcuc.auth.auth.vo.StaffRoleAuthReqVo;
|
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseStatus;
|
|
@@ -12,6 +13,7 @@ import org.springframework.cloud.openfeign.FeignClient;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -20,24 +22,6 @@ import java.util.List;
|
|
|
@FeignClient(name = "dcuc-auth", path = "/dcuc/auth/staffAssignAuthInfoFacade")
|
|
|
public interface IStaffAssignAuthInfoFacade {
|
|
|
|
|
|
-// /**
|
|
|
-// * 人员视图保存用户授权
|
|
|
-// *
|
|
|
-// * @param staffJson 人员json数据
|
|
|
-// * @param appId 应用id
|
|
|
-// * @param roleId 角色id
|
|
|
-// * @param orgId 机构id
|
|
|
-// * @param appOrgId 应用所属机构id
|
|
|
-// * @param user 当前登录用户
|
|
|
-// * @return ResponseStatus
|
|
|
-// */
|
|
|
-// @RequestMapping(value = "saveStaffRoleAuth1")
|
|
|
-// ResponseStatus saveStaffRoleAuth(@RequestParam("staffJson") String staffJson,
|
|
|
-// @RequestParam("appId") String appId,
|
|
|
-// @RequestParam("roleId") String roleId,
|
|
|
-// @RequestParam("orgId") String orgId,
|
|
|
-// @RequestParam("appOrgId") String appOrgId,
|
|
|
-// @RequestParam("user") SecurityUser user);
|
|
|
|
|
|
/**
|
|
|
* 角色视图保存用户授权
|
|
@@ -48,60 +32,6 @@ public interface IStaffAssignAuthInfoFacade {
|
|
|
@PostMapping(value = "saveStaffRoleAuth")
|
|
|
ResponseStatus saveStaffRoleAuth(@RequestBody StaffRoleOperateDTO dto);
|
|
|
|
|
|
-// /**
|
|
|
-// * 角色视图保存用户授权
|
|
|
-// *
|
|
|
-// * @param roleJson 角色json数据
|
|
|
-// * @param appId 应用id
|
|
|
-// * @param staffId 人员id
|
|
|
-// * @param orgId 机构id
|
|
|
-// * @param appOrgId 应用所属机构id
|
|
|
-// * @param user 当前登录用户
|
|
|
-// * @return ResponseStatus
|
|
|
-// */
|
|
|
-// @RequestMapping(value = "saveRoleStaffAuth1")
|
|
|
-// ResponseStatus saveRoleStaffAuth(@RequestParam("roleJson") String roleJson,
|
|
|
-// @RequestParam("appId") String appId,
|
|
|
-// @RequestParam("staffId") String staffId,
|
|
|
-// @RequestParam("orgId") String orgId,
|
|
|
-// @RequestParam("appOrgId") String appOrgId,
|
|
|
-// @RequestParam("user") SecurityUser user);
|
|
|
-
|
|
|
-// /**
|
|
|
-// * @param roleJson 保存角色
|
|
|
-// * @param delRoleJson 删除角色
|
|
|
-// * @param appId
|
|
|
-// * @param staffId
|
|
|
-// * @param orgId
|
|
|
-// * @param appOrgId
|
|
|
-// * @param user
|
|
|
-// * @return
|
|
|
-// */
|
|
|
-// @RequestMapping(value = "saveRoleStaffAuth2")
|
|
|
-// ResponseStatus saveRoleStaffAuth(@RequestParam("roleJson") String roleJson,
|
|
|
-// @RequestParam("delRoleJson") String delRoleJson,
|
|
|
-// @RequestParam("appId") String appId,
|
|
|
-// @RequestParam("staffId") String staffId,
|
|
|
-// @RequestParam("orgId") String orgId,
|
|
|
-// @RequestParam("appOrgId") String appOrgId,
|
|
|
-// @RequestParam("user") SecurityUser user);
|
|
|
-
|
|
|
-// /**
|
|
|
-// * 角色授权给用户
|
|
|
-// *
|
|
|
-// * @return ResponseStatus
|
|
|
-// */
|
|
|
-// @RequestMapping(value = "saveStaffRole")
|
|
|
-// ResponseStatus saveStaffRole(@RequestBody SaveStaffRoleVO staffRoleVO);
|
|
|
-
|
|
|
-// /**
|
|
|
-// * 取消用户的角色授权
|
|
|
-// *
|
|
|
-// * @return ResponseStatus
|
|
|
-// */
|
|
|
-// @PostMapping(value = "deleteStaffRole")
|
|
|
-// ResponseStatus deleteStaffRole(@RequestBody SaveStaffRoleVO staffRoleVO);
|
|
|
-
|
|
|
/**
|
|
|
* 取消用户的所有角色授权
|
|
|
*
|
|
@@ -111,34 +41,6 @@ public interface IStaffAssignAuthInfoFacade {
|
|
|
@RequestMapping(value = "deleteAllStaffRole")
|
|
|
ResponseStatus deleteAllStaffRole(@RequestParam("staffId") String staffId);
|
|
|
|
|
|
-
|
|
|
-// /**
|
|
|
-// * 授权到期自动回收监控
|
|
|
-// *
|
|
|
-// * @param user 系统用户
|
|
|
-// */
|
|
|
-// @PostMapping(value = "authMonitor")
|
|
|
-// void authMonitor(@RequestBody SecurityUser user);
|
|
|
-
|
|
|
-// /**
|
|
|
-// * 根据应用代码和用户身份证获取该用户在该应用所拥有的角色
|
|
|
-// *
|
|
|
-// * @param appCode
|
|
|
-// * @param idcard
|
|
|
-// * @return
|
|
|
-// */
|
|
|
-// @RequestMapping(value = "getUserRoles")
|
|
|
-// List<StaffAssignAuthInfo> getUserRoles(@RequestParam("appCode") String appCode,
|
|
|
-// @RequestParam("idcard") String idcard);
|
|
|
-
|
|
|
-// /**
|
|
|
-// * 根据map的条件查询所有数据
|
|
|
-// *
|
|
|
-// * @return
|
|
|
-// */
|
|
|
-// @PostMapping(value = "staffAssignAuthInfoList")
|
|
|
-// List<StaffAssignAuthInfo> staffAssignAuthInfoList(@RequestBody Map map);
|
|
|
-
|
|
|
/**
|
|
|
* 查询列表
|
|
|
*
|
|
@@ -175,44 +77,14 @@ public interface IStaffAssignAuthInfoFacade {
|
|
|
@GetMapping("getByStaffId")
|
|
|
List<StaffAssignAuthInfo> getByStaffId(@RequestParam("staffId") String staffId);
|
|
|
|
|
|
-// /**
|
|
|
-// * 根据应用ID获取授权数量
|
|
|
-// *
|
|
|
-// * @param appId 应用ID
|
|
|
-// * @return 授权人员数量
|
|
|
-// */
|
|
|
-// @GetMapping("getAppIdNumber")
|
|
|
-// Integer getAppIdNumber(@RequestParam("appId") String appId);
|
|
|
-
|
|
|
-// /**
|
|
|
-// * 根据机构ID获取授权数量
|
|
|
-// *
|
|
|
-// * @param orgId 机构ID
|
|
|
-// * @param roleId 角色ID
|
|
|
-// * @return 授权人员数量
|
|
|
-// */
|
|
|
-// @GetMapping("getOrgIdRoleIdNumber")
|
|
|
-// Integer getOrgIdRoleIdNumber(@RequestParam("orgId") String orgId, @RequestParam("roleId") String roleId);
|
|
|
-//
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 根据功能ID获取授权数量
|
|
|
-// *
|
|
|
-// * @param appId 应用ID
|
|
|
-// * @param funcId 功能ID
|
|
|
-// * @return 授权人员数量
|
|
|
-// */
|
|
|
-// @GetMapping("getFuncNumber")
|
|
|
-// Integer getFuncNumber(@RequestParam("appId") String appId, @RequestParam("funcId") String funcId);
|
|
|
-
|
|
|
/**
|
|
|
* 根据用户 ID 获取应用列表
|
|
|
*
|
|
|
* @param userId 用户id
|
|
|
* @return 应用列表
|
|
|
*/
|
|
|
- @GetMapping("getAppLitByUserId")
|
|
|
- List<AppDataSensitiveLevelDTO> getAppLitByUserId(@RequestParam("userId") String userId);
|
|
|
+ @PostMapping("apiAppAuth")
|
|
|
+ List<AppDataSensitiveLevelDTO> apiAppAuth(@Valid @RequestBody ApiAppAuthVo userId);
|
|
|
|
|
|
/**
|
|
|
* 应用下的角色授权列表
|