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

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