msg.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'msg',
  6. # 显示给用户看的名称
  7. 'lang' => '模板消息列表',
  8. 'order' => 100,
  9. 'desc' => Dever::markdown('发送模板消息接口:'.Dever::url("applet/msg.send").'
  10. key:消息key
  11. project_id:项目id
  12. touser:用户openid
  13. page:页面路径
  14. data:内容
  15. form_id:表单id
  16. '),
  17. # 数据结构
  18. 'struct' => array
  19. (
  20. 'id' => array
  21. (
  22. 'type' => 'int-11',
  23. 'name' => 'ID',
  24. 'default' => '',
  25. 'desc' => '',
  26. 'match' => 'is_numeric',
  27. 'search' => 'order',
  28. //'list' => true,
  29. ),
  30. 'project_id' => array
  31. (
  32. 'type' => 'int-11',
  33. 'name' => '项目ID',
  34. 'default' => '',
  35. 'desc' => '请输入项目',
  36. 'match' => 'is_numeric',
  37. 'list' => true,
  38. ),
  39. 'name' => array
  40. (
  41. 'type' => 'varchar-120',
  42. 'name' => '模板标题',
  43. 'default' => '',
  44. 'desc' => '模板标题',
  45. 'match' => 'is_string',
  46. 'update' => 'text',
  47. 'list' => true,
  48. ),
  49. 'key' => array
  50. (
  51. 'type' => 'varchar-20',
  52. 'name' => '模板消息key-通过key值搜索数据',
  53. 'default' => '',
  54. 'desc' => '模板消息key-通过key值搜索数据',
  55. 'match' => 'is_string',
  56. 'update' => 'text',
  57. 'list' => true,
  58. 'edit' => true,
  59. ),
  60. 'template_id' => array
  61. (
  62. 'type' => 'varchar-120',
  63. 'name' => '模板id',
  64. 'default' => '',
  65. 'desc' => '模板id',
  66. 'match' => 'is_string',
  67. 'update' => 'text',
  68. //'list' => true,
  69. ),
  70. 'content' => array
  71. (
  72. 'type' => 'varchar-600',
  73. 'name' => '模板内容',
  74. 'default' => '',
  75. 'desc' => '模板内容',
  76. 'match' => 'option',
  77. 'update' => 'textarea',
  78. 'list' => true,
  79. ),
  80. 'example' => array
  81. (
  82. 'type' => 'varchar-600',
  83. 'name' => '模板样例',
  84. 'default' => '',
  85. 'desc' => '模板样例',
  86. 'match' => 'option',
  87. 'update' => 'textarea',
  88. 'list' => true,
  89. 'modal' => '点此查看',
  90. ),
  91. 'state' => array
  92. (
  93. 'type' => 'tinyint-1',
  94. 'name' => '状态',
  95. 'default' => '1',
  96. 'desc' => '请选择状态',
  97. 'match' => 'is_numeric',
  98. ),
  99. 'cdate' => array
  100. (
  101. 'type' => 'int-11',
  102. 'name' => '更新时间',
  103. 'match' => array('is_numeric', time()),
  104. 'desc' => '',
  105. 'default' => '',
  106. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  107. ),
  108. ),
  109. 'top' => Dever::config('base', 'applet')->top,
  110. 'manage' => array
  111. (
  112. //'delete' => false,
  113. 'insert' => false,
  114. 'edit' => false,
  115. 'button' => array
  116. (
  117. '同步模板' => 'applet/msg.sync',
  118. ),
  119. ),
  120. );