urlManagerRules.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: leo
  5. * Date: 2018/3/6
  6. * Time: 上午11:12
  7. */
  8. return [
  9. [
  10. 'class' => 'yii\rest\UrlRule',
  11. 'pluralize' => false,
  12. 'controller' => 'v1/site',
  13. 'extraPatterns' => [
  14. 'GET base-info' => 'base-info',
  15. 'GET mobile-base-info' => 'mobile-base-info',
  16. 'GET days-diff' => 'days-diff',
  17. 'GET ad' => 'ad',
  18. 'GET doc' => 'doc',
  19. 'GET config' => 'config',
  20. 'GET page-data' => 'page-data',
  21. 'GET captcha' => 'captcha',
  22. ],
  23. ],
  24. [
  25. 'class' => 'yii\rest\UrlRule',
  26. 'pluralize' => false,
  27. 'controller' => 'v1/file',
  28. 'extraPatterns' => [
  29. 'GET token' => 'token',
  30. ],
  31. ],
  32. [
  33. 'class' => 'yii\rest\UrlRule',
  34. 'pluralize' => false,
  35. 'controller' => 'v1/oauth',
  36. 'extraPatterns' => [
  37. 'GET menu' => 'menu',
  38. 'POST is-login-verify' => 'is-login-verify',
  39. 'POST login' => 'login',
  40. 'GET index' => 'index',
  41. 'GET info' => 'info',
  42. 'GET refresh-token' => 'refresh-token',
  43. 'GET refresh-access-token' => 'refresh-access-token',
  44. 'GET refresh-refresh-token' => 'refresh-refresh-token',
  45. 'POST login-by-backend' => 'login-by-backend',
  46. 'POST no-login-modify-password' => 'no-login-modify-password',
  47. ],
  48. ],
  49. [
  50. 'class' => 'yii\rest\UrlRule',
  51. 'pluralize' => false,
  52. 'controller' => 'v1/dashboard',
  53. 'extraPatterns' => [
  54. 'GET index' => 'index',
  55. 'GET my-index' => 'my-index',
  56. 'GET period-bonus' => 'period-bonus',
  57. 'GET bonus-num' => 'bonus-num',
  58. ],
  59. ],
  60. [
  61. 'class' => 'yii\rest\UrlRule',
  62. 'pluralize' => false,
  63. 'controller' => 'v1/shop',
  64. 'extraPatterns' => [
  65. 'GET index' => 'index',
  66. 'GET reconsume' => 'reconsume',
  67. 'GET goods-detail/<id>' => 'goods-detail',
  68. 'GET show-cart' => 'show-cart',
  69. 'GET reconsume-cart' => 'reconsume-cart',
  70. 'POST sure-order' => 'sure-order',
  71. 'POST verify-order' => 'verify-order',
  72. 'POST reconsume-sure-order' => 'reconsume-sure-order',
  73. 'GET pay-success' => 'pay-success',
  74. 'GET order-list' => 'order-list',
  75. 'GET dec-order-list' => 'dec-order-list',
  76. 'GET goods-active' => 'goods-active',
  77. 'GET order-export/<orderSn>' => 'order-export',
  78. 'GET dec-order-export/<orderSn>' => 'dec-order-export',
  79. ],
  80. ],
  81. [
  82. 'class' => 'yii\rest\UrlRule',
  83. 'pluralize' => false,
  84. 'controller' => 'v1/user',
  85. 'extraPatterns' => [
  86. 'GET index' => 'index',
  87. 'POST edit' => 'edit',
  88. 'POST password' => 'password',
  89. 'POST pay-password' => 'pay-password',
  90. 'GET,POST,PUT id-card' => 'id-card',
  91. 'GET rec-user' => 'rec-user',
  92. 'GET bind' => 'bind',
  93. 'GET,POST bind-edit/<id>' => 'bind-edit',
  94. 'GET,POST dec' => 'dec',
  95. 'GET dec-package' => 'dec-package',
  96. 'GET full-info' => 'full-info',
  97. 'GET user-base-info' => 'user-base-info',
  98. ],
  99. ],
  100. [
  101. 'class' => 'yii\rest\UrlRule',
  102. 'pluralize' => false,
  103. 'controller' => 'v1/atlas',
  104. 'extraPatterns' => [
  105. 'GET main-user-info' => 'main-user-info',
  106. 'GET network' => 'network',
  107. 'GET network-list' => 'network-list',
  108. 'GET get-period' => 'get-period',
  109. ],
  110. ],
  111. [
  112. 'class' => 'yii\rest\UrlRule',
  113. 'pluralize' => false,
  114. 'controller' => 'v1/bonus',
  115. 'extraPatterns' => [
  116. 'GET index' => 'index',
  117. 'GET wallet-flow' => 'wallet-flow',
  118. 'GET new' => 'new',
  119. 'GET other' => 'other',
  120. 'GET real-time-perf' => 'real-time-perf',
  121. 'GET flow-bt' => 'flow-bt',
  122. 'GET trace-fl' => 'trace-fl',
  123. 'GET dec-period' => 'dec-period',
  124. 'GET fc-point' => 'fc-point',
  125. ],
  126. ],
  127. [
  128. 'class' => 'yii\rest\UrlRule',
  129. 'pluralize' => false,
  130. 'controller' => 'v1/finance',
  131. 'extraPatterns' => [
  132. 'GET reconsume-pool-flow' => 'reconsume-pool-flow',
  133. 'GET withdraw' => 'withdraw',
  134. 'POST withdraw-add' => 'withdraw-add',
  135. 'POST withdraw-back' => 'withdraw-back',
  136. 'GET,POST,PUT invoice-add/<id>' => 'invoice-add',
  137. 'GET invoice-before-add' => 'invoice-before-add',
  138. 'GET invoice-after-add' => 'invoice-after-add',
  139. 'GET chk-withdraw-user' => 'chk-withdraw-user',
  140. 'GET invoice-show' => 'invoice-show',
  141. 'GET collect-bind' => 'collect-bind',
  142. 'GET available-balance' => 'available-balance',
  143. 'GET dec-list' => 'dec-list',
  144. 'GET transfer-list' => 'transfer-list',
  145. 'POST transfer-add' => 'transfer-add',
  146. 'GET chk-transfer-user' => 'chk-transfer-user',
  147. 'GET recharge' => 'recharge',
  148. 'GET,POST recharge-add' => 'recharge-add',
  149. 'GET,POST prove-add' => 'prove-add',
  150. 'GET mult-point' => 'mult-point',
  151. 'GET wd-mult-point' => 'wd-mult-point',
  152. ],
  153. ],
  154. [
  155. 'class' => 'yii\rest\UrlRule',
  156. 'pluralize' => false,
  157. 'controller' => 'v1/config',
  158. 'extraPatterns' => [
  159. 'GET base' => 'base',
  160. 'POST auto-withdraw' => 'auto-withdraw',
  161. // 'POST allow-reconsume-sms' => 'allow-reconsume-sms',
  162. 'GET receive-address-list' => 'receive-address-list',
  163. 'GET receive-address-one/<id>' => 'receive-address-one',
  164. 'POST receive-address-add' => 'receive-address-add',
  165. 'POST receive-address-edit' => 'receive-address-edit',
  166. 'POST receive-address-default' => 'receive-address-default',
  167. 'POST receive-address-delete' => 'receive-address-delete',
  168. ],
  169. ],
  170. [
  171. 'class' => 'yii\rest\UrlRule',
  172. 'pluralize' => false,
  173. 'controller' => 'v1/article',
  174. 'extraPatterns' => [
  175. 'GET index' => 'index',
  176. 'GET category' => 'category',
  177. 'GET list/<cid>' => 'list',
  178. 'GET list' => 'list',
  179. 'GET detail/<id>' => 'detail',
  180. 'GET detail' => 'detail',
  181. 'GET get-new-article' => 'get-new-article',
  182. ],
  183. ],
  184. [
  185. 'class' => 'yii\rest\UrlRule',
  186. 'pluralize' => false,
  187. 'controller' => 'v1/message',
  188. 'extraPatterns' => [
  189. 'GET list' => 'list',
  190. 'GET detail/<id>' => 'detail',
  191. 'GET detail' => 'detail',
  192. 'GET pull' => 'pull',
  193. 'GET unread-num' => 'unread-num',
  194. 'GET unread-text' => 'unread-text',
  195. ],
  196. ],
  197. ];