算了,后端我自己写吧

This commit is contained in:
2026-04-01 12:09:02 +08:00
parent 4138340f53
commit 1a0a01a56d
69 changed files with 1949 additions and 102 deletions
+57
View File
@@ -0,0 +1,57 @@
version: "0.3.1"
web:
host: "127.0.0.1"
port: "8080"
tls: false
certPrivatePath: ""
certPublicPath: ""
database:
type: "sqlite" # mysql pg or sqlite
path: "data/database.db" # sqlite path
host: "" # mysql host
port: ""
name: ""
user: ""
pass: ""
user:
cookieTimeout: 604800
passHashType: "md5" #密码哈希类型 text md5 md5salt
file:
maxSize: 52428800
pahts:
avatar: "data/static/avatar/"
image: "data/upload/image/"
video: "data/upload/video/"
music: "data/upload/music/"
pdf: "data/upload/pdf/"
other: "data/upload/other/"
allowImageMime:
image/jpeg: ".jpeg"
image/png: ".png"
image/gif: ".gif"
image/bmp: ".bmp"
allowVideoMime:
video/mp4: ".mp4"
video/x-msvideo: ".avi"
video/quicktime: ".mov"
video/x-flv: ".flv"
video/mpeg: ".mpeg"
allowMusicMime:
audio/mpeg: ".mpeg"
audio/aac: ".aac"
audio/wav: ".wav"
audio/flac: ".flac"
allowPdfMime:
application/pdf: ".pdf"
configed: false
+23
View File
@@ -0,0 +1,23 @@
{
"apiOK":0,
"apiErr":-1,
"postErr":-2,
"jsonErr":-3,
"userNameDup":-4,
"userNameNoFund":-41,
"userPassIncorrect":-42,
"userEmailFormatError":-43,
"userCookieError":-44,
"userCookieNotFund":-44,
"userCookieExpired":-44,
"file_mime_err":-51,
"file_size_err":-52,
"file_name_err":-53,
"file_get_err":-54,
"file_hash_err":-55,
"file_save_err":-56,
"file_not_found":-57,
"file_part_err":-58
}