Files
go-gin-api/configs/constants.go
新亮 382c7d3c8f feature(1.2.7): 新增 cron_server - 后台任务
- import jakecoffman/cron ;
- 可在 WEB 界面中进行新增任务、编辑任务、手动执行任务等;
- 新增 cron.log 记录后台任务执行的日志;
- 调整项目初始化,使其支持安装后台任务模块;
2021-08-28 15:09:20 +08:00

49 lines
1.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 登录验证 TokenHeader 中传递的参数
HeaderLoginToken = "Token"
// HeaderSignToken 签名验证 TokenHeader 中传递的参数
HeaderSignToken = "Authorization"
// HeaderSignTokenDate 签名验证 DateHeader 中传递的参数
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"
)