This commit is contained in:
eoao
2025-04-26 17:24:39 +08:00
commit 24ba4772e6
107 changed files with 13612 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
const constant = {
TOKEN_HEADER: 'Authorization',
JWT_UID: 'user_id:',
JWT_TOKEN: 'token:',
TOKEN_EXPIRE: 60 * 60 * 24 * 30,
ATTACHMENT_PREFIX: 'attachments/'
}
export default constant

View File

@@ -0,0 +1,42 @@
export const userConst = {
type: {
COMMON: 1,
ADMIN: 0,
},
}
export const settingConst = {
register: {
OPEN: 0,
CLOSE: 1,
},
receive: {
OPEN: 0,
CLOSE: 1,
},
send: {
OPEN: 0,
CLOSE: 1,
},
addEmail: {
OPEN: 0,
CLOSE: 1,
},
manyEmail: {
OPEN: 0,
CLOSE: 1,
},
registerVerify: {
OPEN: 0,
CLOSE: 1,
},
addEmailVerify: {
OPEN: 0,
CLOSE: 1,
}
}
export const isDel = {
DELETE: 1,
NORMAL: 0
}

View File

@@ -0,0 +1,6 @@
const KvConst = {
AUTH_INFO: 'auth-uid:',
SETTING: 'setting:',
}
export default KvConst;