project.go 918 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * @description:
  3. * @Author: CP
  4. * @Date: 2020-08-21 11:09:48
  5. * @FilePath: \construction_management\conf\project.go
  6. */
  7. package conf
  8. import "time"
  9. const SysTimeform = "2006-01-02 15:04:05"
  10. const SysTimeformShort = "2006-01-02"
  11. // 中国时区
  12. var SysTimeLocation, _ = time.LoadLocation("Asia/Chongqing")
  13. // ObjSalesign 签名密钥
  14. // var SignSecret = []byte("cpcm005687gokaif")
  15. var SignSecret = "cpcm005687gokaif"
  16. // cookie中的加密验证密钥
  17. var CookieSecret = "cm_login_account"
  18. // nodejs rpc 服务端
  19. const NodeRpcHost = "localhost:50051"
  20. // 是否需要启动全局计划任务服务
  21. var RunningCrontabService = false
  22. // 审批常量
  23. type auditStatus struct {
  24. uncheck int
  25. checking int
  26. checked int
  27. checkNo int
  28. }
  29. func NewAuditConsts() *auditStatus {
  30. return &auditStatus{
  31. uncheck: 0, // 待审批
  32. checking: 1, // 审批中
  33. checked: 2, // 审批完成
  34. checkNo: 3, // 退回
  35. }
  36. }