-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconst.go
77 lines (59 loc) · 2 KB
/
const.go
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
70
71
72
73
74
75
76
77
// Copyright (c) 2023 gpress Authors.
//
// This file is part of gpress.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package main
const (
// 默认名称
appName = "gpress"
// 基本目录
datadir = "gpressdatadir/"
// 数据目录,如果不存在认为是第一次安装启动,会创建默认的数据
sqliteDBfile = datadir + "gpress.db"
// 表信息的名称
//tableInfoName = "tableInfo"
// 表字段的名称
//tableFieldName = "tableField"
// config 配置的表名称
tableConfigName = "config"
// user 用户的表名称
tableUserName = "user"
// site 站点信息
tableSiteName = "site"
// 导航菜单
tableCategoryName = "category"
// 默认模型
// tableModuleDefaultName = "module_default"
// 文章内容
tableContentName = "content"
//---------------------------//
// 模板的路径
templateDir = datadir + "template/"
// 主题的路径
themeDir = templateDir + "theme/"
// 静态化文件目录,网站生成的静态html
staticHtmlDir = datadir + "statichtml/"
// 数据默认的创建用户
createUser = "system"
tokenUserId = "userId"
letters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
userTypeKey = "userType" //0访客,1管理员
defaultPageSize = 10
searchDataJsonFile = datadir + "public/search-data.json"
// 静态文件压缩后缀,兼容Nginx gzip_static
compressedFileSuffix = ".gz"
//版本号
version = "v1.1.0"
)