新增Media配置
This commit is contained in:
parent
20b549b611
commit
f091e820c4
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
1
pom.xml
1
pom.xml
@ -34,6 +34,7 @@
|
|||||||
<module>register-base</module>
|
<module>register-base</module>
|
||||||
<module>module-sms</module>
|
<module>module-sms</module>
|
||||||
<module>register-wechat</module>
|
<module>register-wechat</module>
|
||||||
|
<module>module-file-media</module>
|
||||||
</modules>
|
</modules>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user