10 changed files with 207 additions and 2 deletions
@ -0,0 +1,31 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
|
xmlns="http://maven.apache.org/POM/4.0.0" |
||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
|
<parent> |
||||
|
<groupId>org.dromara</groupId> |
||||
|
<artifactId>dk-api</artifactId> |
||||
|
<version>${revision}</version> |
||||
|
</parent> |
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
|
<artifactId>api-sample</artifactId> |
||||
|
<description>api-sample |
||||
|
|
||||
|
</description> |
||||
|
<dependencies> |
||||
|
|
||||
|
<!-- RuoYi Common Core--> |
||||
|
<dependency> |
||||
|
<groupId>org.dromara</groupId> |
||||
|
<artifactId>common-core</artifactId> |
||||
|
</dependency> |
||||
|
|
||||
|
<dependency> |
||||
|
<groupId>org.dromara</groupId> |
||||
|
<artifactId>common-excel</artifactId> |
||||
|
</dependency> |
||||
|
|
||||
|
</dependencies> |
||||
|
|
||||
|
</project> |
@ -0,0 +1,19 @@ |
|||||
|
package org.dromara.sample.api; |
||||
|
|
||||
|
import org.dromara.sample.api.domain.vo.RemoteMediaFileVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @auther yq |
||||
|
* @data 2025/3/30 |
||||
|
*/ |
||||
|
public interface RemoteJobService { |
||||
|
|
||||
|
/** |
||||
|
* @param jobId |
||||
|
* @param fileType 文件类型jpeg、mp4、RTK、OBS、NAV、MRK、DAT |
||||
|
* */ |
||||
|
List<RemoteMediaFileVo> getRemoteMediaFileVo(String jobId,String fileType); |
||||
|
|
||||
|
} |
@ -0,0 +1,100 @@ |
|||||
|
package org.dromara.sample.api.domain.vo; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @auther yq |
||||
|
* @data 2025/3/30 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class RemoteMediaFileVo implements Serializable { |
||||
|
|
||||
|
private Integer id; |
||||
|
|
||||
|
|
||||
|
private String fileId; |
||||
|
|
||||
|
|
||||
|
private String fileName; |
||||
|
|
||||
|
|
||||
|
private String filePath; |
||||
|
|
||||
|
|
||||
|
private String workspaceId; |
||||
|
|
||||
|
|
||||
|
private String fingerprint; |
||||
|
|
||||
|
|
||||
|
private String tinnyFingerprint; |
||||
|
|
||||
|
|
||||
|
private String objectKey; |
||||
|
|
||||
|
|
||||
|
private Integer subFileType; |
||||
|
|
||||
|
|
||||
|
private Boolean isOriginal; |
||||
|
|
||||
|
|
||||
|
private String drone; |
||||
|
|
||||
|
|
||||
|
private String payload; |
||||
|
|
||||
|
|
||||
|
private String jobId; |
||||
|
|
||||
|
|
||||
|
private Date createTime; |
||||
|
|
||||
|
|
||||
|
private Date updateTime; |
||||
|
|
||||
|
|
||||
|
private Double lat; |
||||
|
|
||||
|
|
||||
|
private Double lng; |
||||
|
|
||||
|
|
||||
|
private Double absoluteAltitude; |
||||
|
|
||||
|
|
||||
|
private Double relativeAltitude; |
||||
|
|
||||
|
|
||||
|
private Date shootTime; |
||||
|
|
||||
|
private Double gimbalYawDegree; |
||||
|
|
||||
|
|
||||
|
private String cloudToCloudId; |
||||
|
|
||||
|
|
||||
|
private Integer uploadedFileCount; |
||||
|
|
||||
|
private Integer expectedFileCount; |
||||
|
|
||||
|
private Integer flightType; |
||||
|
|
||||
|
/** |
||||
|
* 文件类型jpeg、mp4、RTK、OBS、NAV、MRK、DAT |
||||
|
*/ |
||||
|
|
||||
|
private String fileType; |
||||
|
|
||||
|
/** |
||||
|
* 后缀类型广角 W、广角 V、红外 T、变焦 Z、RTCM文件 D 、PPK |
||||
|
*/ |
||||
|
|
||||
|
private String fileStatus; |
||||
|
|
||||
|
|
||||
|
private Integer fileIndex; |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package org.dromara.sample.dubbo; |
||||
|
|
||||
|
import lombok.RequiredArgsConstructor; |
||||
|
import org.apache.dubbo.config.annotation.DubboService; |
||||
|
import org.dromara.common.core.utils.MapstructUtils; |
||||
|
import org.dromara.sample.api.RemoteJobService; |
||||
|
import org.dromara.sample.api.domain.vo.RemoteMediaFileVo; |
||||
|
import org.dromara.sample.media.model.MediaFileEntity; |
||||
|
import org.dromara.sample.media.service.IFileService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @auther yq |
||||
|
* @data 2025/3/30 |
||||
|
*/ |
||||
|
@RequiredArgsConstructor |
||||
|
@Service |
||||
|
@DubboService |
||||
|
public class RemoteJobServiceImpl implements RemoteJobService { |
||||
|
private final IFileService fileService; |
||||
|
|
||||
|
@Override |
||||
|
public List<RemoteMediaFileVo> getRemoteMediaFileVo(String jobId, String fileType) { |
||||
|
List<MediaFileEntity> remoteMediaFileVo = fileService.getRemoteMediaFileVo(jobId, fileType); |
||||
|
List<RemoteMediaFileVo> mediaFileEntities = MapstructUtils.convert(remoteMediaFileVo, RemoteMediaFileVo.class); |
||||
|
return mediaFileEntities; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue