msg.php 2.2 KB

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