urlManagerRules.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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 reconsume-sure-order' => 'reconsume-sure-order',
  72. 'GET pay-success' => 'pay-success',
  73. 'GET order-list' => 'order-list',
  74. 'GET dec-order-list' => 'dec-order-list',
  75. 'GET goods-active' => 'goods-active',
  76. 'GET order-export/<orderSn>' => 'order-export',
  77. 'GET dec-order-export/<orderSn>' => 'dec-order-export',
  78. 'POST sure-approach-order' => 'sure-approach-order',
  79. 'POST delete-approach-order' => 'delete-approach-order',
  80. 'POST verify-approach-order' => 'verify-approach-order',
  81. 'GET order-backing-out' => 'order-backing-out',
  82. 'GET ba-order-list' => 'ba-order-list',
  83. 'GET ba-product-list' => 'ba-product-list',
  84. 'GET ba-shopping-cart' => 'ba-shopping-cart',
  85. 'POST ba-sure-approach-order' => 'ba-sure-approach-order',
  86. 'POST ba-delete-approach-order' => 'ba-delete-approach-order',
  87. ],
  88. ],
  89. [
  90. 'class' => 'yii\rest\UrlRule',
  91. 'pluralize' => false,
  92. 'controller' => 'v1/user',
  93. 'extraPatterns' => [
  94. 'GET index' => 'index',
  95. 'POST edit' => 'edit',
  96. 'POST password' => 'password',
  97. 'POST pay-password' => 'pay-password',
  98. 'GET,POST,PUT id-card' => 'id-card',
  99. 'GET rec-user' => 'rec-user',
  100. 'GET bind' => 'bind',
  101. 'GET,POST bind-edit/<id>' => 'bind-edit',
  102. 'GET,POST dec' => 'dec',
  103. 'GET,POST upgrade' => 'upgrade',
  104. 'POST upgrade-info' => 'upgrade-info',
  105. 'GET dec-package' => 'dec-package',
  106. 'GET full-info' => 'full-info',
  107. 'GET get-auto-place' => 'get-auto-place',
  108. 'GET user-base-info' => 'user-base-info',
  109. 'GET ba-info' => 'ba-info',
  110. 'POST ba-edit' => 'ba-edit',
  111. 'POST ba-password' => 'ba-password',
  112. 'POST ba-pay-password' => 'ba-pay-password',
  113. ],
  114. ],
  115. [
  116. 'class' => 'yii\rest\UrlRule',
  117. 'pluralize' => false,
  118. 'controller' => 'v1/atlas',
  119. 'extraPatterns' => [
  120. 'GET main-user-info' => 'main-user-info',
  121. 'GET network' => 'network',
  122. 'GET network-list' => 'network-list',
  123. 'GET get-period' => 'get-period',
  124. ],
  125. ],
  126. [
  127. 'class' => 'yii\rest\UrlRule',
  128. 'pluralize' => false,
  129. 'controller' => 'v1/bonus',
  130. 'extraPatterns' => [
  131. 'GET index' => 'index',
  132. 'GET wallet-flow' => 'wallet-flow',
  133. 'GET new' => 'new',
  134. 'GET other' => 'other',
  135. 'GET real-time-perf' => 'real-time-perf',
  136. 'GET flow-bt' => 'flow-bt',
  137. 'GET trace-fl' => 'trace-fl',
  138. 'GET dec-period' => 'dec-period',
  139. 'GET fc-point' => 'fc-point',
  140. 'GET historical-cumulative-bonus' => 'historical-cumulative-bonus',
  141. ],
  142. ],
  143. [
  144. 'class' => 'yii\rest\UrlRule',
  145. 'pluralize' => false,
  146. 'controller' => 'v1/finance',
  147. 'extraPatterns' => [
  148. 'GET reconsume-pool-flow' => 'reconsume-pool-flow',
  149. 'GET withdraw' => 'withdraw',
  150. 'POST withdraw-add' => 'withdraw-add',
  151. 'POST withdraw-back' => 'withdraw-back',
  152. 'GET,POST,PUT invoice-add/<id>' => 'invoice-add',
  153. 'GET invoice-before-add' => 'invoice-before-add',
  154. 'GET invoice-after-add' => 'invoice-after-add',
  155. 'GET chk-withdraw-user' => 'chk-withdraw-user',
  156. 'GET invoice-show' => 'invoice-show',
  157. 'GET collect-bind' => 'collect-bind',
  158. 'GET available-balance' => 'available-balance',
  159. 'GET dec-list' => 'dec-list',
  160. 'GET transfer-list' => 'transfer-list',
  161. 'POST transfer-add' => 'transfer-add',
  162. 'GET chk-transfer-user' => 'chk-transfer-user',
  163. 'GET recharge' => 'recharge',
  164. 'GET,POST recharge-add' => 'recharge-add',
  165. 'GET,POST prove-add' => 'prove-add',
  166. 'GET mult-point' => 'mult-point',
  167. 'GET wd-mult-point' => 'wd-mult-point',
  168. ],
  169. ],
  170. [
  171. 'class' => 'yii\rest\UrlRule',
  172. 'pluralize' => false,
  173. 'controller' => 'v1/config',
  174. 'extraPatterns' => [
  175. 'GET base' => 'base',
  176. 'POST auto-withdraw' => 'auto-withdraw',
  177. // 'POST allow-reconsume-sms' => 'allow-reconsume-sms',
  178. 'GET receive-address-list' => 'receive-address-list',
  179. 'GET receive-address-one/<id>' => 'receive-address-one',
  180. 'POST receive-address-add' => 'receive-address-add',
  181. 'POST receive-address-edit' => 'receive-address-edit',
  182. 'POST receive-address-default' => 'receive-address-default',
  183. 'POST receive-address-delete' => 'receive-address-delete',
  184. 'GET ba-receive-address-list' => 'ba-receive-address-list',
  185. 'GET ba-receive-address-one/<id>' => 'ba-receive-address-one',
  186. 'POST ba-receive-address-add' => 'ba-receive-address-add',
  187. 'POST ba-receive-address-edit' => 'ba-receive-address-edit',
  188. 'POST ba-receive-address-default' => 'ba-receive-address-default',
  189. 'POST ba-receive-address-delete' => 'ba-receive-address-delete',
  190. ],
  191. ],
  192. [
  193. 'class' => 'yii\rest\UrlRule',
  194. 'pluralize' => false,
  195. 'controller' => 'v1/article',
  196. 'extraPatterns' => [
  197. 'GET index' => 'index',
  198. 'GET category' => 'category',
  199. 'GET list/<cid>' => 'list',
  200. 'GET list' => 'list',
  201. 'GET detail/<id>' => 'detail',
  202. 'GET detail' => 'detail',
  203. 'GET get-new-article' => 'get-new-article',
  204. ],
  205. ],
  206. [
  207. 'class' => 'yii\rest\UrlRule',
  208. 'pluralize' => false,
  209. 'controller' => 'v1/message',
  210. 'extraPatterns' => [
  211. 'GET list' => 'list',
  212. 'GET detail/<id>' => 'detail',
  213. 'GET detail' => 'detail',
  214. 'GET pull' => 'pull',
  215. 'GET unread-num' => 'unread-num',
  216. 'GET unread-text' => 'unread-text',
  217. ],
  218. ],
  219. ];