info.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'info',
  6. # 显示给用户看的名称
  7. 'lang' => '小程序管理',
  8. 'order' => -10,
  9. # 数据结构
  10. 'struct' => array
  11. (
  12. 'id' => array
  13. (
  14. 'type' => 'int-11',
  15. 'name' => 'ID',
  16. 'default' => '',
  17. 'desc' => '',
  18. 'match' => 'is_numeric',
  19. //'search' => 'order',
  20. 'order' => 'desc',
  21. 'list' => true,
  22. ),
  23. 'name' => array
  24. (
  25. 'type' => 'varchar-60',
  26. 'name' => '小程序名称',
  27. 'default' => '',
  28. 'desc' => '请输入小程序名称',
  29. 'match' => 'is_string',
  30. 'update' => 'text',
  31. 'search' => 'fulltext',
  32. 'list' => true,
  33. ),
  34. 'logo' => array
  35. (
  36. 'type' => 'varchar-150',
  37. 'name' => 'logo图片-大小为150X150px',
  38. 'default' => '',
  39. 'desc' => '请选择logo图片',
  40. 'match' => 'is_string',
  41. 'update' => 'image',
  42. 'key' => '1',
  43. 'place' => '150',
  44. ),
  45. 'title' => array
  46. (
  47. 'type' => 'varchar-60',
  48. 'name' => '首页标题',
  49. 'default' => '',
  50. 'desc' => '请输入首页标题',
  51. 'match' => 'is_string',
  52. 'update' => 'text',
  53. 'search' => 'fulltext',
  54. 'list' => true,
  55. ),
  56. 'pic' => array
  57. (
  58. 'type' => 'varchar-150',
  59. 'name' => '首页头图',
  60. 'default' => '',
  61. 'desc' => '请选择首页头图',
  62. 'match' => 'is_string',
  63. 'update' => 'image',
  64. 'key' => '1',
  65. 'place' => '150',
  66. ),
  67. 'state' => array
  68. (
  69. 'type' => 'tinyint-1',
  70. 'name' => '状态',
  71. 'default' => '1',
  72. 'desc' => '请选择状态',
  73. 'match' => 'is_numeric',
  74. ),
  75. 'cdate' => array
  76. (
  77. 'type' => 'int-11',
  78. 'name' => '录入时间',
  79. 'match' => array('is_numeric', time()),
  80. 'desc' => '',
  81. # 只有insert时才生效
  82. 'insert' => true,
  83. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  84. ),
  85. ),
  86. 'manage' => array
  87. (
  88. ),
  89. # request 请求接口定义
  90. 'request' => array
  91. (
  92. ),
  93. );