chore: initialize qiming workspace repository

This commit is contained in:
Codex
2026-05-29 14:22:48 +08:00
commit bfd67a0f2c
10750 changed files with 1885711 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>app-platform-file</artifactId>
<groupId>com.xspaceagi</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.xspaceagi</groupId>
<artifactId>app-platform-file-spec</artifactId>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<dependencies>
<dependency>
<groupId>com.xspaceagi</groupId>
<artifactId>system-spec</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,44 @@
package com.xspaceagi.file.spec.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 存储类型枚举
*/
@Getter
@AllArgsConstructor
public enum StorageTypeEnum {
/**
* 腾讯云COS
*/
COS("cos", "腾讯云COS"),
/**
* 阿里云OSS
*/
OSS("oss", "阿里云OSS"),
/**
* S3协议
*/
S3("s3", "S3协议"),
/**
* 本地存储
*/
FILE("file", "本地存储");
private final String code;
private final String desc;
public static StorageTypeEnum fromCode(String code) {
for (StorageTypeEnum type : values()) {
if (type.getCode().equals(code)) {
return type;
}
}
return FILE;
}
}