-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathconfig.js
More file actions
69 lines (68 loc) · 1.71 KB
/
config.js
File metadata and controls
69 lines (68 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const path = require("path");
const port = 3002;
let is_production = process.env.NODE_ENV === "production" ? true : false;
module.exports = {
port: port,
base_url: is_production ? "https://team.yiiu.co" : `http://localhost:${port}`,
ws_url: is_production ? "https://team.yiiu.co" : `http://localhost:${port}`,
ws_secure: is_production,
attachment_dir: path.join(__dirname, "static", "attachments"),
avatar_dir: path.join(__dirname, "static", "avatar"),
admins: ["admin"], // 管理员用户名
pageSize: 40,
mysql: is_production
? {
host: "localhost",
user: "root",
password: "123123",
database: "pyteam"
}
: {
host: "localhost",
user: "root",
password: "",
database: "pyteam"
},
errorCode: {
SUCCESS: 200,
FAILURE: 201,
TOKEN_INVALID: 202
},
taskStatus: {
WAIT: "待处理",
PROCESSING: "进行中",
FINISH: "已完成"
},
wsCode: {
PROJECTS: 901,
TASKS: 902,
CREATE_PROJECT: 903,
CREATE_TASK: 904,
FETCH_TASKS: 905,
FETCH_PROJECTS: 906,
UPDATE_STATUS: 907,
UPDATE_PROJECT: 908,
FETCH_TASK: 909,
TASK: 910,
CREATE_TASK_MESSAGE: 911,
FETCH_MY_TASKS: 912,
MY_TASKS: 913,
FETCH_APIDOCS: 914,
FETCH_APIDOC: 915,
CREATE_APIDOC: 916,
APIDOCS: 917,
UPDATE_APIDOC: 918,
APIDOC: 919,
DELETE_APIDOC: 920,
USERS: 921,
FETCH_USERS: 922,
FETCH_CHAT: 923,
CHAT: 924,
CREATE_CHAT: 925,
NEW_CHAT: 926,
FETCH_PROJECT_USERS: 927, // 获取参与项目的用户
CHANGE_TASK_EXECUTOR_USER: 928, // 更改任务的执行人
UPDATE_TASK_NAME: 929, // 更新任务名
UPDATE_TASK_INTRO: 930, // 更新任务描述
}
};