project.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. // 请填写您的AccessKeyId。
  12. const AccessKeyId = "LTAI4GAEAwazcR8JvjZxMiJL"
  13. // 请填写您的AccessKeySecret。
  14. const AccessKeySecret = "805hbdLwM6cRcBBLSAE5o8mdDAi2NY"
  15. // host的格式为 bucketname.endpoint ,请替换为您的真实信息。
  16. const OssHost string = "http://measuresaas.oss-cn-shenzhen.aliyuncs.com"
  17. // callbackUrl为 上传回调服务器的URL,请将下面的IP和Port配置为您自己的真实信息。
  18. const CallbackUrl string = "http://88.88.88.88:8888"
  19. // 用户上传文件时指定的前缀。 --user-dir-prefix/
  20. const Upload_dir string = "xinxihua/"
  21. const Expire_time int64 = 60
  22. // 中国时区
  23. var SysTimeLocation, _ = time.LoadLocation("Asia/Chongqing")
  24. // ObjSalesign 签名密钥
  25. // var SignSecret = []byte("cpcm005687gokaif")
  26. var SignSecret = "cpcm005687gokaif"
  27. // cookie中的加密验证密钥
  28. var CookieSecret = "cm_login_account"
  29. // nodejs rpc 服务端
  30. const NodeRpcHost = "localhost:50051"
  31. // 是否需要启动全局计划任务服务
  32. var RunningCrontabService = false
  33. // 审批常量
  34. type auditStatus struct {
  35. uncheck int
  36. checking int
  37. checked int
  38. checkNo int
  39. }
  40. func NewAuditConsts() *auditStatus {
  41. return &auditStatus{
  42. uncheck: 0, // 待审批
  43. checking: 1, // 审批中
  44. checked: 2, // 审批完成
  45. checkNo: 3, // 退回
  46. }
  47. }