保存
This commit is contained in:
10
mail-worker/src/const/constant.js
Normal file
10
mail-worker/src/const/constant.js
Normal 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
|
||||
42
mail-worker/src/const/entity-const.js
Normal file
42
mail-worker/src/const/entity-const.js
Normal 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
|
||||
}
|
||||
6
mail-worker/src/const/kv-const.js
Normal file
6
mail-worker/src/const/kv-const.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const KvConst = {
|
||||
AUTH_INFO: 'auth-uid:',
|
||||
SETTING: 'setting:',
|
||||
}
|
||||
|
||||
export default KvConst;
|
||||
Reference in New Issue
Block a user