| | |
| | | import com.terra.system.service.data.VerService; |
| | | import com.terra.system.service.show.DataLibService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.Parameters; |
| | | import javax.annotation.Resource; |
| | | |
| | | import io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * 资料馆 |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "综合展示\\资料馆") |
| | | @Tag(name = "综合展示\\资料馆") |
| | | @RestController |
| | | @RequestMapping("/dataLib") |
| | | public class DataLibController extends BaseQueryController { |
| | |
| | | VerService verService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "根据目录ID查询版本列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query") |
| | | @Operation(summary = "根据目录ID查询版本列表") |
| | | @Parameters({ |
| | | @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY) |
| | | }) |
| | | @GetMapping(value = "/selectVerByDirid") |
| | | public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "分页查询元数据") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"), |
| | | @ApiImplicitParam(name = "types", value = "资料类别", dataType = "String", paramType = "query", example = "基础测绘,基础地灾,基础勘察,合规数据,管理数据,测绘(ESV),勘察(EGE),地灾(EGD),洞库(EGD)"), |
| | | @ApiImplicitParam(name = "dirs", value = "项目编码", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "分页查询元数据") |
| | | @Parameters({ |
| | | @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"), |
| | | @Parameter(name = "types", description = "资料类别", in = ParameterIn.QUERY, example = "基础测绘,基础地灾,基础勘察,合规数据,管理数据,测绘(ESV),勘察(EGE),地灾(EGD),洞库(EGD)"), |
| | | @Parameter(name = "dirs", description = "项目编码", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectMetasForPage") |
| | | public ResponseMsg<Object> selectMetasForPage(String depcode, String types, String dirs, String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询表中数据") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10") |
| | | @Operation(summary = "查询表中数据") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "元数据ID", in = ParameterIn.QUERY, example = "115"), |
| | | @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10") |
| | | }) |
| | | @GetMapping(value = "/selectDbData") |
| | | public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "请求元数据下载") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dr", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body") |
| | | @Operation(summary = "请求元数据下载") |
| | | @Parameters({ |
| | | @Parameter(name = "dr", description = "请求下载实体") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/downloadReq") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询下载文件") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"), |
| | | @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query") |
| | | @Operation(summary = "查询下载文件") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY), |
| | | @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY) |
| | | }) |
| | | @GetMapping(value = "/selectDownloadFile") |
| | | public ResponseMsg<Boolean> selectDownloadFile(String guid, String pwd) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "下载文件") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"), |
| | | @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query") |
| | | @Operation(summary = "下载文件") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY), |
| | | @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY) |
| | | }) |
| | | @ResponseBody |
| | | @GetMapping(value = "/downloadFile") |