push.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. $type = array
  3. (
  4. 1 => '腾讯信鸽',
  5. );
  6. return array
  7. (
  8. # 表名
  9. 'name' => 'push',
  10. # 显示给用户看的名称
  11. 'lang' => '推送配置',
  12. 'order' => 19,
  13. # 数据结构
  14. 'struct' => array
  15. (
  16. 'id' => array
  17. (
  18. 'type' => 'int-11',
  19. 'name' => 'ID',
  20. 'default' => '',
  21. 'desc' => '',
  22. 'match' => 'is_numeric',
  23. 'search' => 'fulltext',
  24. 'order' => 'desc',
  25. 'list' => true,
  26. ),
  27. 'name' => array
  28. (
  29. 'type' => 'varchar-30',
  30. 'name' => '推送名称',
  31. 'default' => '',
  32. 'desc' => '请填写类型名称',
  33. 'match' => 'is_string',
  34. 'update' => 'text',
  35. 'list' => true,
  36. ),
  37. 'type' => array
  38. (
  39. 'type' => 'tinyint-1',
  40. 'name' => '推送类型',
  41. 'default' => '1',
  42. 'desc' => '推送类型',
  43. 'match' => 'is_numeric',
  44. 'option' => $type,
  45. 'update' => 'select',
  46. //'search' => 'select',
  47. 'list' => true,
  48. ),
  49. 'android_appid' => array
  50. (
  51. 'type' => 'varchar-100',
  52. 'name' => '安卓推送appid',
  53. 'default' => '',
  54. 'desc' => '安卓推送appid',
  55. 'match' => 'is_string',
  56. 'update' => 'textarea',
  57. ),
  58. 'android_appsecret' => array
  59. (
  60. 'type' => 'varchar-200',
  61. 'name' => '安卓推送appsecret',
  62. 'default' => '',
  63. 'desc' => '安卓推送appsecret',
  64. 'match' => 'is_string',
  65. 'update' => 'textarea',
  66. ),
  67. 'ios_appid' => array
  68. (
  69. 'type' => 'varchar-100',
  70. 'name' => '苹果推送appid',
  71. 'default' => '',
  72. 'desc' => '苹果推送appid',
  73. 'match' => 'is_string',
  74. 'update' => 'textarea',
  75. ),
  76. 'ios_appsecret' => array
  77. (
  78. 'type' => 'varchar-200',
  79. 'name' => '苹果推送appsecret',
  80. 'default' => '',
  81. 'desc' => '苹果推送appsecret',
  82. 'match' => 'is_string',
  83. 'update' => 'textarea',
  84. ),
  85. 'state' => array
  86. (
  87. 'type' => 'tinyint-1',
  88. 'name' => '状态',
  89. 'default' => '1',
  90. 'desc' => '请选择状态',
  91. 'match' => 'is_numeric',
  92. ),
  93. 'cdate' => array
  94. (
  95. 'type' => 'int-11',
  96. 'name' => '录入时间',
  97. 'match' => array('is_numeric', time()),
  98. 'desc' => '',
  99. # 只有insert时才生效
  100. 'insert' => true,
  101. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  102. ),
  103. ),
  104. 'manage' => array
  105. (
  106. ),
  107. # request 请求接口定义
  108. 'request' => array
  109. (
  110. ),
  111. );