|
@@ -1,15 +1,20 @@
|
|
package com.dragoninfo.dcuc.authweb.restcontroller.element;
|
|
package com.dragoninfo.dcuc.authweb.restcontroller.element;
|
|
|
|
|
|
import com.dragoninfo.dcuc.auth.element.facade.IEnvElementFacade;
|
|
import com.dragoninfo.dcuc.auth.element.facade.IEnvElementFacade;
|
|
|
|
+import com.dragoninfo.dcuc.auth.element.vo.ElementUserRelRespVo;
|
|
|
|
+import com.dragoninfo.dcuc.auth.element.vo.ElementUserSaveVo;
|
|
import com.dragoninfo.dcuc.auth.element.vo.EnvElementSaveVo;
|
|
import com.dragoninfo.dcuc.auth.element.vo.EnvElementSaveVo;
|
|
import com.dragoninfo.dcuc.auth.element.vo.RespEnvElementVo;
|
|
import com.dragoninfo.dcuc.auth.element.vo.RespEnvElementVo;
|
|
|
|
+import com.dragoninfo.dcuc.auth.sub.vo.AuthUserVo;
|
|
import com.dragoninfo.duceap.core.response.Result;
|
|
import com.dragoninfo.duceap.core.response.Result;
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseStatus;
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseStatus;
|
|
import com.dragonsoft.duceap.base.entity.search.SearchDTO;
|
|
import com.dragonsoft.duceap.base.entity.search.SearchDTO;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -59,4 +64,28 @@ public class EnvElementController {
|
|
result.setResult(responseStatus.getStatusCode());
|
|
result.setResult(responseStatus.getStatusCode());
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "关联用户分页查询")
|
|
|
|
+ @PostMapping("userRelPage")
|
|
|
|
+ public Result<List<ElementUserRelRespVo>> userRelPage(SearchDTO searchDTO) {
|
|
|
|
+ return envElementFacade.userRelPage(searchDTO);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "非关联用户分页查询")
|
|
|
|
+ @PostMapping("notInUserRelPage")
|
|
|
|
+ public Result<List<AuthUserVo>> notInUserRelPage(SearchDTO searchDTO) {
|
|
|
|
+ return envElementFacade.notInUserRelPage(searchDTO);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "关联关系添加")
|
|
|
|
+ @PostMapping("userRelSave")
|
|
|
|
+ public Result<Object> userRelSave(@Valid @RequestBody ElementUserSaveVo relSaveVo) {
|
|
|
|
+ return envElementFacade.userRelSave(relSaveVo);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "关联关系移除")
|
|
|
|
+ @DeleteMapping("deleteUserRel/{id}")
|
|
|
|
+ public Result<Object> deleteUserRel(@PathVariable("id") String id) {
|
|
|
|
+ return envElementFacade.deleteUserRel(id);
|
|
|
|
+ }
|
|
}
|
|
}
|