| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /*
- * @description:
- * @Author: CP
- * @Date: 2020-08-21 11:09:48
- * @FilePath: \construction_management\conf\project.go
- */
- package conf
- import "time"
- const SysTimeform = "2006-01-02 15:04:05"
- const SysTimeformShort = "2006-01-02"
- // 中国时区
- var SysTimeLocation, _ = time.LoadLocation("Asia/Chongqing")
- // ObjSalesign 签名密钥
- // var SignSecret = []byte("cpcm005687gokaif")
- var SignSecret = "cpcm005687gokaif"
- // cookie中的加密验证密钥
- var CookieSecret = "cm_login_account"
- // nodejs rpc 服务端
- const NodeRpcHost = "localhost:50051"
- // 是否需要启动全局计划任务服务
- var RunningCrontabService = false
- // 审批常量
- type auditStatus struct {
- uncheck int
- checking int
- checked int
- checkNo int
- }
- func NewAuditConsts() *auditStatus {
- return &auditStatus{
- uncheck: 0, // 待审批
- checking: 1, // 审批中
- checked: 2, // 审批完成
- checkNo: 3, // 退回
- }
- }
|