|
@@ -0,0 +1,73 @@
|
|
|
+package com.dragoninfo.dcuc.authweb.restcontroller.auth;
|
|
|
+
|
|
|
+import com.dragoninfo.dcuc.auth.auth.facade.IDataAuthFacade;
|
|
|
+import com.dragoninfo.dcuc.authweb.restcontroller.auth.vo.LabelDataAuthAcceptVo;
|
|
|
+import com.dragoninfo.dcuc.authweb.restcontroller.auth.vo.OrgDataAuthAcceptVo;
|
|
|
+import com.dragoninfo.dcuc.authweb.restcontroller.auth.vo.UserDataAuthAcceptVo;
|
|
|
+import com.dragoninfo.duceap.core.response.Result;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author mazq
|
|
|
+ * @date 2021/4/6
|
|
|
+ */
|
|
|
+@Api("数据授权相关接口")
|
|
|
+@RestController
|
|
|
+@RequestMapping("authsvr/v2/dataauth")
|
|
|
+public class DataAuthController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ IDataAuthFacade dataAuthFacade;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取属性列表,树形结构:警种1-业务域N")
|
|
|
+ @GetMapping(value = "attrTreeList", produces = "application/json;charset=UTF-8")
|
|
|
+ public Result<?> getAttrTreeList(){
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "人员数据授权接口")
|
|
|
+ @PostMapping(value = "dataAuth", produces = "application/json;charset=UTF-8")
|
|
|
+ public Result userDataAuth(@RequestBody UserDataAuthAcceptVo userDataAuthAcceptVo){
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "机构数据授权接口")
|
|
|
+ @PostMapping(value = "dataAuth", produces = "application/json;charset=UTF-8")
|
|
|
+ public Result orgDataAuth(@RequestBody OrgDataAuthAcceptVo orgDataAuthAcceptVo){
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "业务域标签数据授权接口")
|
|
|
+ @PostMapping(value = "dataAuth", produces = "application/json;charset=UTF-8")
|
|
|
+ public Result labelDataAuth(@RequestBody LabelDataAuthAcceptVo labelDataAuthAcceptVo){
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "人员视角数据权限查询")
|
|
|
+ @GetMapping(value = "userDataAuthInfo")
|
|
|
+ public Result userDataAuthInfo(@RequestParam("userId") String userId){
|
|
|
+
|
|
|
+
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|