update:some change
This commit is contained in:
@@ -172,6 +172,10 @@ STORAGE_ENGINE=filesystem
|
||||
|
||||

|
||||
|
||||
## Star History
|
||||
|
||||
[](https://star-history.com/#vastsa/FileCodeBox&Date)
|
||||
|
||||
## 赞赏
|
||||
|
||||
<table style="width: 100%">
|
||||
|
||||
@@ -35,6 +35,7 @@ docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --n
|
||||
```bash
|
||||
docker run -d --restart=always -p 12345:12345 -v /Users/lan/soft/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:arm
|
||||
```
|
||||
|
||||
### Update
|
||||
|
||||
```bash
|
||||
@@ -177,6 +178,10 @@ STORAGE_ENGINE=filesystem
|
||||
|
||||

|
||||
|
||||
## Star History
|
||||
|
||||
[](https://star-history.com/#vastsa/FileCodeBox&Date)
|
||||
|
||||
## Appreciate
|
||||
|
||||
<table style="width: 100%">
|
||||
|
||||
+24
@@ -9,6 +9,30 @@ from fastapi import UploadFile
|
||||
import settings
|
||||
|
||||
|
||||
class TencentCOS:
|
||||
def __init__(self, bucket: str, region: str, secret_id: str, secret_key: str):
|
||||
self.bucket = bucket
|
||||
self.region = region
|
||||
self.secret_id = secret_id
|
||||
self.secret_key = secret_key
|
||||
|
||||
def upload(self, file: UploadFile, path: str) -> str:
|
||||
# 上传文件
|
||||
pass
|
||||
|
||||
def download(self, path: str) -> BinaryIO:
|
||||
# 下载文件
|
||||
pass
|
||||
|
||||
def delete(self, path: str) -> None:
|
||||
# 删除文件
|
||||
pass
|
||||
|
||||
def get_url(self, path: str) -> str:
|
||||
# 获取文件访问链接
|
||||
pass
|
||||
|
||||
|
||||
class FileSystemStorage:
|
||||
DATA_ROOT = Path(settings.DATA_ROOT)
|
||||
STATIC_URL = settings.STATIC_URL
|
||||
|
||||
@@ -37,6 +37,10 @@
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.el-card {
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
||||
body {
|
||||
|
||||
Reference in New Issue
Block a user