template.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. ),
  33. 'name' => array
  34. (
  35. 'type' => 'varchar-60',
  36. 'name' => '模板名',
  37. 'default' => '',
  38. 'desc' => '模板名',
  39. 'match' => 'is_string',
  40. 'update' => 'text',
  41. 'list' => true,
  42. ),
  43. 'template' => array
  44. (
  45. 'type' => 'varchar-60',
  46. 'name' => '模板id-暂时手动填写,小程序模板id+1就是这个模板id',
  47. 'default' => '',
  48. 'desc' => '模板id',
  49. 'match' => 'is_string',
  50. 'update' => 'text',
  51. 'list' => true,
  52. ),
  53. 'desc' => array
  54. (
  55. 'type' => 'varchar-255',
  56. 'name' => '描述',
  57. 'default' => '',
  58. 'desc' => '描述',
  59. 'match' => 'option',
  60. 'update' => 'textarea',
  61. 'list' => true,
  62. ),
  63. 'state' => array
  64. (
  65. 'type' => 'tinyint-1',
  66. 'name' => '状态',
  67. 'default' => '1',
  68. 'desc' => '请选择状态',
  69. 'match' => 'is_numeric',
  70. ),
  71. 'cdate' => array
  72. (
  73. 'type' => 'int-11',
  74. 'name' => '录入时间',
  75. 'match' => array('is_numeric', time()),
  76. 'desc' => '',
  77. # 只有insert时才生效
  78. 'insert' => true,
  79. ),
  80. ),
  81. 'top' => Dever::config('base', 'component')->top,
  82. 'manage' => array
  83. (
  84. ),
  85. );