-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
constants.go
48 lines (33 loc) · 1.33 KB
/
constants.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
package configs
const (
// ProjectVersion 项目版本
ProjectVersion = "v1.2.7"
// ProjectName 项目名称
ProjectName = "go-gin-api"
// ProjectDomain 项目域名
ProjectDomain = "http://127.0.0.1"
// ProjectPort 项目端口
ProjectPort = ":9999"
// ProjectAccessLogFile 项目访问日志存放文件
ProjectAccessLogFile = "./logs/" + ProjectName + "-access.log"
// ProjectCronLogFile 项目后台任务日志存放文件
ProjectCronLogFile = "./logs/" + ProjectName + "-cron.log"
// ProjectInstallMark 项目安装完成标识
ProjectInstallMark = "INSTALL.lock"
// HeaderLoginToken 登录验证 Token,Header 中传递的参数
HeaderLoginToken = "Token"
// HeaderSignToken 签名验证 Token,Header 中传递的参数
HeaderSignToken = "Authorization"
// HeaderSignTokenDate 签名验证 Date,Header 中传递的参数
HeaderSignTokenDate = "Authorization-Date"
// RedisKeyPrefixRequestID Redis Key 前缀 - 防止重复提交
RedisKeyPrefixRequestID = ProjectName + ":request-id:"
// RedisKeyPrefixLoginUser Redis Key 前缀 - 登录用户信息
RedisKeyPrefixLoginUser = ProjectName + ":login-user:"
// RedisKeyPrefixSignature Redis Key 前缀 - 签名验证信息
RedisKeyPrefixSignature = ProjectName + ":signature:"
// ZhCN 简体中文 - 中国
ZhCN = "zh-cn"
// EnUS 英文 - 美国
EnUS = "en-us"
)