IDataResourceFacade.java 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package com.dragoninfo.dcuc.app.facade;
  2. import com.dragoninfo.dcuc.app.vo.*;
  3. import com.dragonsoft.duceap.base.entity.http.ResponseStatus;
  4. import io.swagger.annotations.Api;
  5. import io.swagger.annotations.ApiImplicitParam;
  6. import io.swagger.annotations.ApiOperation;
  7. import org.springframework.cloud.openfeign.FeignClient;
  8. import org.springframework.web.bind.annotation.GetMapping;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestParam;
  11. import java.util.List;
  12. /**
  13. * Created by lidr on 2021/4/14
  14. */
  15. @Api(value = "数据资源分级分类表码管理")
  16. @FeignClient(name = "dcuc-app", path = "/dcuc/app/dataResourceFacade")
  17. public interface IDataResourceFacade {
  18. @ApiOperation(value = "数据分级表码列表")
  19. @GetMapping(value = "datalevels")
  20. List<DataLevelVo> getDataLevelList();
  21. @ApiOperation(value = "安全等级表码列表")
  22. @GetMapping(value = "securitylevels")
  23. List<DataLevelVo> getSecurityLevelList();
  24. @ApiOperation(value = "数据资源分类表码列表")
  25. @GetMapping(value = "dataclassifys")
  26. List<DataClassifyVo> getDataClassifyList();
  27. @ApiOperation(value = "字段分类表码列表")
  28. @GetMapping(value = "fieldclassifys")
  29. List<DataFieldClassifyVo> getFieldClassifyList();
  30. @ApiOperation(value = "数据资源树")
  31. @ApiImplicitParam(name = "attrType", value = "数据属性类型 TABLE:表 COLUMN:列")
  32. @GetMapping(value = "getAllDataResourceTree")
  33. List<DataResourceClassifyVo> getAllDataResourceTree(@RequestParam(value = "attrType", required = false) String attrType);
  34. @ApiOperation(value = "数据资源树")
  35. @ApiImplicitParam(name = "typeCode", value = "typeCode类型(数据分级:DATA_CLASSIFY;数据资源分类:DATA_RESOURCE_CLASSIFY;数据安全级别:DATA_SECURITY_LEVEL;字段分类:COLUMN_CLASSIFY)")
  36. @GetMapping(value = "getDataResourceTree")
  37. DataResourceClassifyVo getDataResourceTree(@RequestParam("typeCode") String typeCode);
  38. /**
  39. * 数据分级同步
  40. *
  41. * @return
  42. */
  43. @GetMapping(value = "dataLevelSync")
  44. ResponseStatus dataLevelSync();
  45. /**
  46. * 数据安全等级同步
  47. *
  48. * @return
  49. */
  50. @GetMapping(value = "dataSecSync")
  51. ResponseStatus dataSecSync();
  52. /**
  53. * 数据资源分类同步
  54. *
  55. * @return
  56. */
  57. @GetMapping(value = "dataClaSync")
  58. ResponseStatus dataClaSync();
  59. /**
  60. * 字段分类同步
  61. *
  62. * @return
  63. */
  64. @GetMapping(value = "fieldClaSync")
  65. ResponseStatus fieldClaSync();
  66. /**
  67. * 批量获取
  68. * 根据id和classifyType获取名字和code值
  69. *
  70. * @param ids
  71. * @param classifyType
  72. * @return
  73. */
  74. @PostMapping(value = "getDetailByIdsAndClaType")
  75. List<DataLevelVo> getDetailByIdsAndClaType(@RequestParam("ids") List<String> ids, @RequestParam("classifyType") String classifyType);
  76. /**
  77. * 根据id和classifyType获取名字和code值
  78. *
  79. * @param id
  80. * @param classifyType
  81. * @return
  82. */
  83. @PostMapping(value = "getDetailByIdAndClaType")
  84. DataLevelVo getDetailByIdAndClaType(@RequestParam("id") String id, @RequestParam("classifyType") String classifyType);
  85. }