智慧食堂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 regels
4.6 KiB

  1. package enum
  2. type SysCfg string
  3. const (
  4. AppName = "app_name"
  5. OpenAlipayAppid = "open_alipay_appid"
  6. OpenAlipayAesKey = "open_alipay_aes_key"
  7. OpenAlipayAppPrivateKey = "open_alipay_app_private_key"
  8. OpenAlipayAppPublicKey = "open_alipay_app_public_key"
  9. OpenAlipayPublicKey = "open_alipay_public_key"
  10. OpenAppletAesKey = "open_applet_aes_key"
  11. OpenAppletAppid = "open_applet_appid"
  12. OpenAppletAppPrivateKey = "open_applet_app_private_key"
  13. OpenAppletAppPublicKey = "open_applet_app_public_key"
  14. OpenAppletPublicKey = "open_applet_public_key"
  15. FileBucketHost = "file_bucket_host"
  16. FileBucketRegion = "file_bucket_region"
  17. FileBucketScheme = "file_bucket_scheme"
  18. FileExt = "file_ext"
  19. FileSecretKey = "file_secret_key"
  20. FileUserUploadMaxSize = "file_user_upload_max_size"
  21. FileAccessKey = "file_access_key"
  22. FileBucket = "file_bucket"
  23. AdministratorContactInfo = "administrator_contact_info"
  24. CentralKitchenForSchoolReserveMealTime = "central_kitchen_for_school_reserve_meal_time"
  25. CentralKitchenForSchoolCancelMealTime = "central_kitchen_for_school_cancel_meal_time"
  26. NursingHomeReserveMealTime = "nursing_home_reserve_meal_time"
  27. NursingHomeCancelMealTime = "nursing_home_cancel_meal_time"
  28. JsapiPayAppAutToken = "jsapi_pay_app_auth_token"
  29. JsapiPayNotifyUrl = "jsapi_pay_notify_url"
  30. WxAppletAppId = "wx_applet_app_id"
  31. WxAppletAppSecret = "wx_applet_app_secret"
  32. WxMchId = "wx_mch_id"
  33. WxSpMchApiV3Key = "wx_sp_mch_api_v3_key"
  34. WxSpMchCertificateSerialNumber = "wx_sp_mch_certificate_serial_number"
  35. WxSpAppId = "wx_sp_app_id"
  36. WxSpMchId = "wx_sp_mch_id"
  37. WxJsapiPayNotifyUrl = "wx_jsapi_pay_notify_url"
  38. )
  39. func (gt SysCfg) String() string {
  40. switch gt {
  41. case AppName:
  42. return "项目名称"
  43. case OpenAlipayAesKey:
  44. return "支付宝开放平台-第三方应用-接口内容加密-aesKey"
  45. case OpenAlipayAppPrivateKey:
  46. return "支付宝开放平台-第三方应用-接口加签-应用私钥"
  47. case OpenAlipayAppPublicKey:
  48. return "支付宝开放平台-第三方应用-接口加签-应用公钥"
  49. case OpenAlipayPublicKey:
  50. return "支付宝开放平台-第三方应用-接口加签-支付宝公钥"
  51. case OpenAppletAesKey:
  52. return "支付宝开放平台-小程序-接口内容加密-aesKey"
  53. case OpenAppletAppPrivateKey:
  54. return "支付宝开放平台-小程序-接口加签-应用私钥"
  55. case OpenAppletAppPublicKey:
  56. return "支付宝开放平台-小程序-接口加签-应用公钥"
  57. case OpenAppletPublicKey:
  58. return "支付宝开放平台-小程序-接口加签-支付宝公钥"
  59. case OpenAlipayAppid:
  60. return "支付宝开放平台-第三方应用-appid"
  61. case OpenAppletAppid:
  62. return "支付宝开放平台-小程序-appid"
  63. case FileBucketHost:
  64. return "对象存储域名"
  65. case FileBucketRegion:
  66. return "文件所属区域"
  67. case FileExt:
  68. return "文件上传后缀,后台用户不限制后缀"
  69. case FileBucketScheme:
  70. return "文件上传模式"
  71. case FileSecretKey:
  72. return "对象存储SecretToken"
  73. case FileUserUploadMaxSize:
  74. return "用户单文件最大上传大小,byte"
  75. case FileAccessKey:
  76. return "对象存储AccessToken"
  77. case FileBucket:
  78. return "对象存储bucket"
  79. case AdministratorContactInfo:
  80. return "管理员联系方式"
  81. case CentralKitchenForSchoolReserveMealTime:
  82. return "央厨预定用餐时间"
  83. case CentralKitchenForSchoolCancelMealTime:
  84. return "央厨取消用餐时间"
  85. case NursingHomeReserveMealTime:
  86. return "养老院预定用餐时间"
  87. case NursingHomeCancelMealTime:
  88. return "养老院取消用餐时间"
  89. case JsapiPayAppAutToken:
  90. return "支付宝开放平台-jsapi支付-app_auth_token"
  91. case JsapiPayNotifyUrl:
  92. return "支付宝开放平台-jsapi支付-异步通知"
  93. case WxAppletAppId:
  94. return "微信-小程序-appid"
  95. case WxAppletAppSecret:
  96. return "微信-小程序-appSecret"
  97. case WxMchId:
  98. return "微信商户id"
  99. case WxSpMchApiV3Key:
  100. return "微信服务商-商户apiV3密钥"
  101. case WxSpMchCertificateSerialNumber:
  102. return "微信服务商-商户证书序列号"
  103. case WxSpAppId:
  104. return "微信服务商-appid"
  105. case WxSpMchId:
  106. return "微信服务商-商户id"
  107. case WxJsapiPayNotifyUrl:
  108. return "微信-jsapi支付-异步通知"
  109. default:
  110. return "未知"
  111. }
  112. }