author.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'author',
  6. # 显示给用户看的名称
  7. 'lang' => '作者管理',
  8. 'order' => 99,
  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. 'pic' => array
  35. (
  36. 'type' => 'varchar-150',
  37. 'name' => '头像',
  38. 'default' => '',
  39. 'desc' => '请选择头像',
  40. 'match' => 'is_string',
  41. 'update' => 'image',
  42. 'key' => '1',
  43. 'place' => '150',
  44. ),
  45. 'state' => array
  46. (
  47. 'type' => 'tinyint-1',
  48. 'name' => '状态',
  49. 'default' => '1',
  50. 'desc' => '请选择状态',
  51. 'match' => 'is_numeric',
  52. ),
  53. 'cdate' => array
  54. (
  55. 'type' => 'int-11',
  56. 'name' => '录入时间',
  57. 'match' => array('is_numeric', time()),
  58. 'desc' => '',
  59. # 只有insert时才生效
  60. 'insert' => true,
  61. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  62. ),
  63. ),
  64. 'manage' => array
  65. (
  66. ),
  67. # request 请求接口定义
  68. 'request' => array
  69. (
  70. ),
  71. );