diff --git a/basic-properties/src/main/java/ink/wgink/properties/media/MediaProperties.java b/basic-properties/src/main/java/ink/wgink/properties/media/MediaProperties.java new file mode 100644 index 00000000..df662250 --- /dev/null +++ b/basic-properties/src/main/java/ink/wgink/properties/media/MediaProperties.java @@ -0,0 +1,38 @@ +package ink.wgink.properties.media; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * When you feel like quitting. Think about why you started + * 当你想要放弃的时候,想想当初你为何开始 + * + * @ClassName: MediaProperties + * @Description: 媒体 + * @Author: WangGeng + * @Date: 2021/6/9 21:11 + * @Version: 1.0 + **/ +@Component +@ConfigurationProperties(prefix = "media") +public class MediaProperties { + + private String uploadPath; + private String ffmpegPath; + + public String getUploadPath() { + return uploadPath == null ? "" : uploadPath.trim(); + } + + public void setUploadPath(String uploadPath) { + this.uploadPath = uploadPath; + } + + public String getFfmpegPath() { + return ffmpegPath == null ? "" : ffmpegPath.trim(); + } + + public void setFfmpegPath(String ffmpegPath) { + this.ffmpegPath = ffmpegPath; + } +} diff --git a/basic-properties/src/main/java/ink/wgink/properties/media/video/VideoProperties.java b/basic-properties/src/main/java/ink/wgink/properties/media/video/VideoProperties.java new file mode 100644 index 00000000..a0fdcc6e --- /dev/null +++ b/basic-properties/src/main/java/ink/wgink/properties/media/video/VideoProperties.java @@ -0,0 +1,38 @@ +package ink.wgink.properties.media.video; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * When you feel like quitting. Think about why you started + * 当你想要放弃的时候,想想当初你为何开始 + * + * @ClassName: VideoProperties + * @Description: 音频配置 + * @Author: WangGeng + * @Date: 2021/6/8 22:18 + * @Version: 1.0 + **/ +@Component +@ConfigurationProperties(prefix = "media.video") +public class VideoProperties { + + private Long backendDuration; + private Long appDuration; + + public Long getBackendDuration() { + return backendDuration; + } + + public void setBackendDuration(Long backendDuration) { + this.backendDuration = backendDuration; + } + + public Long getAppDuration() { + return appDuration; + } + + public void setAppDuration(Long appDuration) { + this.appDuration = appDuration; + } +} diff --git a/pom.xml b/pom.xml index e9a5f186..a7c93ee2 100644 --- a/pom.xml +++ b/pom.xml @@ -34,6 +34,7 @@ register-base module-sms register-wechat + module-file-media pom