智慧食堂
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

enum_sys_cfg.go 4.2 KiB

1年前
1年前
1年前
1年前
1年前
1年前
1年前
1年前
1年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. WxMchApiV3Key = "wx_mch_api_v3_key"
  34. WxMchCertificateSerialNumber = "wx_mch_certificate_serial_number"
  35. )
  36. func (gt SysCfg) String() string {
  37. switch gt {
  38. case AppName:
  39. return "项目名称"
  40. case OpenAlipayAesKey:
  41. return "支付宝开放平台-第三方应用-接口内容加密-aesKey"
  42. case OpenAlipayAppPrivateKey:
  43. return "支付宝开放平台-第三方应用-接口加签-应用私钥"
  44. case OpenAlipayAppPublicKey:
  45. return "支付宝开放平台-第三方应用-接口加签-应用公钥"
  46. case OpenAlipayPublicKey:
  47. return "支付宝开放平台-第三方应用-接口加签-支付宝公钥"
  48. case OpenAppletAesKey:
  49. return "支付宝开放平台-小程序-接口内容加密-aesKey"
  50. case OpenAppletAppPrivateKey:
  51. return "支付宝开放平台-小程序-接口加签-应用私钥"
  52. case OpenAppletAppPublicKey:
  53. return "支付宝开放平台-小程序-接口加签-应用公钥"
  54. case OpenAppletPublicKey:
  55. return "支付宝开放平台-小程序-接口加签-支付宝公钥"
  56. case OpenAlipayAppid:
  57. return "支付宝开放平台-第三方应用-appid"
  58. case OpenAppletAppid:
  59. return "支付宝开放平台-小程序-appid"
  60. case FileBucketHost:
  61. return "对象存储域名"
  62. case FileBucketRegion:
  63. return "文件所属区域"
  64. case FileExt:
  65. return "文件上传后缀,后台用户不限制后缀"
  66. case FileBucketScheme:
  67. return "文件上传模式"
  68. case FileSecretKey:
  69. return "对象存储SecretToken"
  70. case FileUserUploadMaxSize:
  71. return "用户单文件最大上传大小,byte"
  72. case FileAccessKey:
  73. return "对象存储AccessToken"
  74. case FileBucket:
  75. return "对象存储bucket"
  76. case AdministratorContactInfo:
  77. return "管理员联系方式"
  78. case CentralKitchenForSchoolReserveMealTime:
  79. return "央厨预定用餐时间"
  80. case CentralKitchenForSchoolCancelMealTime:
  81. return "央厨取消用餐时间"
  82. case NursingHomeReserveMealTime:
  83. return "养老院预定用餐时间"
  84. case NursingHomeCancelMealTime:
  85. return "养老院取消用餐时间"
  86. case JsapiPayAppAutToken:
  87. return "支付宝开放平台-jsapi支付-app_auth_token"
  88. case JsapiPayNotifyUrl:
  89. return "支付宝开放平台-jsapi支付-异步通知"
  90. case WxAppletAppId:
  91. return "微信-小程序-appid"
  92. case WxAppletAppSecret:
  93. return "微信-小程序-appSecret"
  94. case WxMchId:
  95. return "微信商户id"
  96. case WxMchApiV3Key:
  97. return "微信商户apiV3密钥"
  98. case WxMchCertificateSerialNumber:
  99. return "微信商户证书序列号"
  100. default:
  101. return "未知"
  102. }
  103. }