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%">
|
<table style="width: 100%">
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --n
|
|||||||
```bash
|
```bash
|
||||||
docker run -d --restart=always -p 12345:12345 -v /Users/lan/soft/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:arm
|
docker run -d --restart=always -p 12345:12345 -v /Users/lan/soft/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:arm
|
||||||
```
|
```
|
||||||
|
|
||||||
### Update
|
### Update
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -177,6 +178,10 @@ STORAGE_ENGINE=filesystem
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
## Star History
|
||||||
|
|
||||||
|
[](https://star-history.com/#vastsa/FileCodeBox&Date)
|
||||||
|
|
||||||
## Appreciate
|
## Appreciate
|
||||||
|
|
||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
|
|||||||
+24
@@ -9,6 +9,30 @@ from fastapi import UploadFile
|
|||||||
import settings
|
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:
|
class FileSystemStorage:
|
||||||
DATA_ROOT = Path(settings.DATA_ROOT)
|
DATA_ROOT = Path(settings.DATA_ROOT)
|
||||||
STATIC_URL = settings.STATIC_URL
|
STATIC_URL = settings.STATIC_URL
|
||||||
|
|||||||
@@ -37,6 +37,10 @@
|
|||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-card {
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
Reference in New Issue
Block a user