|
|
@@ -15,6 +15,7 @@
|
|
|
*/
|
|
|
package com.nb.oss.strategy.storage;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import com.nb.common.entity.GenericEntity;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
@@ -47,6 +48,9 @@ public class SysStorage extends GenericEntity<String> implements Serializable {
|
|
|
@ApiModelProperty(value = "后缀")
|
|
|
private String suffix;
|
|
|
|
|
|
+ @ApiModelProperty(value = "url前缀")
|
|
|
+ private String urlPrefix;
|
|
|
+
|
|
|
@ApiModelProperty(value = "路径")
|
|
|
private String url;
|
|
|
|
|
|
@@ -59,23 +63,15 @@ public class SysStorage extends GenericEntity<String> implements Serializable {
|
|
|
@ApiModelProperty("版本号")
|
|
|
private String version;
|
|
|
|
|
|
- public SysStorage(String realName, String name, String suffix, String path, String type, Long size) {
|
|
|
+ public SysStorage(String realName, String name, String suffix, String urlPrefix, String url, String type, Long size) {
|
|
|
this.realName = realName;
|
|
|
this.name = name;
|
|
|
this.suffix = suffix;
|
|
|
- this.url = path;
|
|
|
+ this.url = url;
|
|
|
+ this.urlPrefix=urlPrefix;
|
|
|
this.type = type;
|
|
|
this.size = size;
|
|
|
this.version=null;
|
|
|
}
|
|
|
|
|
|
- public SysStorage(String realName, String name, String suffix, String path, String type, Long size,String version) {
|
|
|
- this.realName = realName;
|
|
|
- this.name = name;
|
|
|
- this.suffix = suffix;
|
|
|
- this.url = path;
|
|
|
- this.type = type;
|
|
|
- this.size = size;
|
|
|
- this.version=version;
|
|
|
- }
|
|
|
}
|