template.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * 小程序模板
  4. */
  5. return array
  6. (
  7. # 表名
  8. 'name' => 'template',
  9. # 显示给用户看的名称
  10. 'lang' => '小程序模板',
  11. 'order' => 98,
  12. # 数据结构
  13. 'struct' => array
  14. (
  15. 'id' => array
  16. (
  17. 'type' => 'int-11',
  18. 'name' => 'ID',
  19. 'default' => '',
  20. 'desc' => '',
  21. 'match' => 'is_numeric',
  22. 'search' => 'order',
  23. 'list' => true,
  24. ),
  25. 'project_id' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => '项目',
  29. 'default' => '',
  30. 'desc' => '请输入项目',
  31. 'match' => 'is_numeric',
  32. 'list' => true,
  33. 'edit' => true,
  34. ),
  35. 'name' => array
  36. (
  37. 'type' => 'varchar-60',
  38. 'name' => '模板名',
  39. 'default' => '',
  40. 'desc' => '模板名',
  41. 'match' => 'is_string',
  42. 'update' => 'text',
  43. 'list' => true,
  44. ),
  45. 'template' => array
  46. (
  47. 'type' => 'varchar-60',
  48. 'name' => '模板id-暂时手动填写,小程序模板id+1就是这个模板id',
  49. 'default' => '',
  50. 'desc' => '模板id',
  51. 'match' => 'is_string',
  52. 'update' => 'text',
  53. 'list' => true,
  54. ),
  55. 'desc' => array
  56. (
  57. 'type' => 'varchar-255',
  58. 'name' => '描述',
  59. 'default' => '',
  60. 'desc' => '描述',
  61. 'match' => 'option',
  62. 'update' => 'textarea',
  63. 'list' => true,
  64. ),
  65. 'state' => array
  66. (
  67. 'type' => 'tinyint-1',
  68. 'name' => '状态',
  69. 'default' => '1',
  70. 'desc' => '请选择状态',
  71. 'match' => 'is_numeric',
  72. ),
  73. 'cdate' => array
  74. (
  75. 'type' => 'int-11',
  76. 'name' => '录入时间',
  77. 'match' => array('is_numeric', time()),
  78. 'desc' => '',
  79. # 只有insert时才生效
  80. 'insert' => true,
  81. ),
  82. ),
  83. 'top' => Dever::config('base', 'component')->top,
  84. 'manage' => array
  85. (
  86. ),
  87. );