company.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'company',
  6. # 显示给用户看的名称
  7. 'lang' => Dever::lang('company_manage'),
  8. 'order' => -10,
  9. 'end' => array
  10. (
  11. 'insert' => 'payment/lib/manage.createAppid',
  12. //'update' => 'payment/lib/manage.createAppid',
  13. ),
  14. # 数据结构
  15. 'struct' => array
  16. (
  17. 'id' => array
  18. (
  19. 'type' => 'int-11',
  20. 'name' => 'ID',
  21. 'default' => '',
  22. 'desc' => '',
  23. 'match' => 'is_numeric',
  24. //'search' => 'order',
  25. 'order' => 'desc',
  26. 'list' => true,
  27. ),
  28. 'name' => array
  29. (
  30. 'type' => 'varchar-60',
  31. 'name' => Dever::lang('name'),
  32. 'default' => '',
  33. 'desc' => Dever::lang('name'),
  34. 'match' => 'is_string',
  35. 'update' => 'text',
  36. 'search' => 'fulltext',
  37. 'list' => true,
  38. ),
  39. 'appid' => array
  40. (
  41. 'type' => 'varchar-60',
  42. 'name' => Dever::lang('appid'),
  43. 'default' => '',
  44. 'desc' => Dever::lang('appid'),
  45. 'match' => 'is_string',
  46. //'update' => 'text',
  47. 'search' => 'fulltext',
  48. 'list' => true,
  49. ),
  50. 'appsecret' => array
  51. (
  52. 'type' => 'varchar-120',
  53. 'name' => Dever::lang('appsecret'),
  54. 'default' => '',
  55. 'desc' => Dever::lang('appsecret'),
  56. 'match' => 'is_string',
  57. //'update' => 'text',
  58. 'search' => 'fulltext',
  59. 'list' => true,
  60. ),
  61. 'state' => array
  62. (
  63. 'type' => 'tinyint-1',
  64. 'name' => Dever::lang('state'),
  65. 'default' => '1',
  66. 'desc' => Dever::lang('state'),
  67. 'match' => 'is_numeric',
  68. ),
  69. 'cdate' => array
  70. (
  71. 'type' => 'int-11',
  72. 'name' => Dever::lang('cdate'),
  73. 'match' => array('is_numeric', time()),
  74. 'desc' => '',
  75. # 只有insert时才生效
  76. 'insert' => true,
  77. 'search' => 'date',
  78. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  79. ),
  80. ),
  81. 'manage' => array
  82. (
  83. //'insert' => false,
  84. //'edit' => false,
  85. //'delete' => false,
  86. ),
  87. );