config.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. declare(strict_types=1);
  3. return json_decode(<<<'JSON'
  4. [
  5. {
  6. "type": "switch",
  7. "title": "系统通知",
  8. "field": "system_notify",
  9. "value": true,
  10. "props": {
  11. "activeText": "开启",
  12. "inactiveText": "关闭"
  13. }
  14. },
  15. {
  16. "type": "switch",
  17. "title": "活动通知",
  18. "field": "activity_notify",
  19. "value": true,
  20. "props": {
  21. "activeText": "开启",
  22. "inactiveText": "关闭"
  23. }
  24. },
  25. {
  26. "type": "switch",
  27. "title": "订单通知",
  28. "field": "order_notify",
  29. "value": true,
  30. "props": {
  31. "activeText": "开启",
  32. "inactiveText": "关闭"
  33. }
  34. },
  35. {
  36. "type": "switch",
  37. "title": "物流通知",
  38. "field": "logistics_notify",
  39. "value": false,
  40. "props": {
  41. "activeText": "开启",
  42. "inactiveText": "关闭"
  43. }
  44. },
  45. {
  46. "type": "switch",
  47. "title": "私信",
  48. "field": "private_message",
  49. "value": true,
  50. "props": {
  51. "activeText": "开启",
  52. "inactiveText": "关闭"
  53. }
  54. },
  55. {
  56. "type": "switch",
  57. "title": "邮件通知",
  58. "field": "email_notify",
  59. "value": false,
  60. "props": {
  61. "activeText": "开启",
  62. "inactiveText": "关闭"
  63. }
  64. },
  65. {
  66. "type": "switch",
  67. "title": "短信通知",
  68. "field": "sms_notify",
  69. "value": false,
  70. "props": {
  71. "activeText": "开启",
  72. "inactiveText": "关闭"
  73. }
  74. },
  75. {
  76. "type": "switch",
  77. "title": "未读消息提醒",
  78. "field": "unread_reminder",
  79. "value": false,
  80. "props": {
  81. "activeText": "开启",
  82. "inactiveText": "关闭"
  83. }
  84. },
  85. {
  86. "type": "inputNumber",
  87. "title": "公告保留天数",
  88. "field": "announcement_retention_days",
  89. "value": 90,
  90. "props": {
  91. "min": 1,
  92. "max": 365,
  93. "placeholder": "请输入公告保留天数"
  94. }
  95. },
  96. {
  97. "type": "inputNumber",
  98. "title": "通知保留天数",
  99. "field": "notification_retention_days",
  100. "value": 30,
  101. "props": {
  102. "min": 1,
  103. "max": 365,
  104. "placeholder": "请输入通知保留天数"
  105. }
  106. },
  107. {
  108. "type": "inputNumber",
  109. "title": "私信保留天数",
  110. "field": "private_message_retention_days",
  111. "value": 180,
  112. "props": {
  113. "min": 1,
  114. "max": 365,
  115. "placeholder": "请输入私信保留天数"
  116. }
  117. }
  118. ]
  119. JSON, true);