user.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'user',
  6. # 显示给用户看的名称
  7. 'lang' => '用户绑定列表',
  8. 'order' => 10,
  9. 'menu' => false,
  10. # 数据结构
  11. 'struct' => array
  12. (
  13. 'id' => array
  14. (
  15. 'type' => 'int-11',
  16. 'name' => 'ID',
  17. 'default' => '',
  18. 'desc' => '',
  19. 'match' => 'is_numeric',
  20. //'search' => 'order',
  21. 'order' => 'desc',
  22. 'list' => true,
  23. ),
  24. 'account_id' => array
  25. (
  26. 'type' => 'int-11',
  27. 'name' => '所属账户',
  28. 'default' => '1',
  29. 'desc' => '所属账户',
  30. 'match' => 'is_numeric',
  31. 'update' => 'select',
  32. 'list' => '{account_id} > 0 ? Dever::load("oauth/account-one#name", {account_id}) : "未知"',
  33. ),
  34. 'uid' => array
  35. (
  36. 'type' => 'int-11',
  37. 'name' => '用户',
  38. 'default' => '',
  39. 'desc' => '',
  40. 'match' => 'is_numeric',
  41. ),
  42. 'unionid' => array
  43. (
  44. 'type' => 'varchar-50',
  45. 'name' => 'unionid-第三方唯一id',
  46. 'default' => '',
  47. 'desc' => 'unionid',
  48. 'match' => 'is_string',
  49. //'update' => 'text',
  50. 'search' => 'fulltext',
  51. 'list' => true,
  52. ),
  53. 'state' => array
  54. (
  55. 'type' => 'tinyint-1',
  56. 'name' => '状态',
  57. 'default' => '1',
  58. 'desc' => '请选择状态',
  59. 'match' => 'is_numeric',
  60. ),
  61. 'cdate' => array
  62. (
  63. 'type' => 'int-11',
  64. 'name' => '录入时间',
  65. 'match' => array('is_numeric', time()),
  66. 'desc' => '',
  67. # 只有insert时才生效
  68. 'search' => 'date',
  69. 'insert' => true,
  70. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  71. ),
  72. ),
  73. 'manage' => array
  74. (
  75. 'insert' => false,
  76. 'edit' => false,
  77. 'delete' => false,
  78. ),
  79. # request 请求接口定义
  80. 'request' => array
  81. (
  82. ),
  83. );