project.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'project',
  6. # 显示给用户看的名称
  7. 'lang' => '项目管理',
  8. 'order' => 30,
  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' => 'fulltext',
  20. 'order' => 'desc',
  21. 'list' => true,
  22. ),
  23. 'name' => array
  24. (
  25. 'type' => 'varchar-30',
  26. 'name' => '项目名称',
  27. 'default' => '',
  28. 'desc' => '项目名称',
  29. 'match' => 'is_string',
  30. 'update' => 'text',
  31. 'list' => true,
  32. ),
  33. 'state' => array
  34. (
  35. 'type' => 'tinyint-1',
  36. 'name' => '状态',
  37. 'default' => '1',
  38. 'desc' => '请选择状态',
  39. 'match' => 'is_numeric',
  40. ),
  41. 'cdate' => array
  42. (
  43. 'type' => 'int-11',
  44. 'name' => '录入时间',
  45. 'match' => array('is_numeric', time()),
  46. 'desc' => '',
  47. # 只有insert时才生效
  48. 'insert' => true,
  49. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  50. ),
  51. ),
  52. 'manage' => array
  53. (
  54. 'button' => array
  55. (
  56. '消息类型' => array('list', 'type&oper_parent=project&oper_project=message'),
  57. '推送配置' => array('list', 'push&oper_parent=project&oper_project=message'),
  58. ),
  59. ),
  60. 'default' => array
  61. (
  62. 'col' => 'id,name,state,cdate',
  63. 'value' => array
  64. (
  65. '1, "默认项目", 1,' . DEVER_TIME,
  66. ),
  67. ),
  68. # request 请求接口定义
  69. 'request' => array
  70. (
  71. ),
  72. );