urlManagerRules.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. 'GET ba-base-info' => 'ba-base-info',
  23. 'GET send-notice' => 'send-notice',
  24. ],
  25. ],
  26. [
  27. 'class' => 'yii\rest\UrlRule',
  28. 'pluralize' => false,
  29. 'controller' => 'v1/file',
  30. 'extraPatterns' => [
  31. 'GET token' => 'token',
  32. ],
  33. ],
  34. [
  35. 'class' => 'yii\rest\UrlRule',
  36. 'pluralize' => false,
  37. 'controller' => 'v1/oauth',
  38. 'extraPatterns' => [
  39. 'GET menu' => 'menu',
  40. 'POST is-login-verify' => 'is-login-verify',
  41. 'POST login' => 'login',
  42. 'GET index' => 'index',
  43. 'GET info' => 'info',
  44. 'GET refresh-token' => 'refresh-token',
  45. 'GET refresh-access-token' => 'refresh-access-token',
  46. 'GET refresh-refresh-token' => 'refresh-refresh-token',
  47. 'POST login-by-backend' => 'login-by-backend',
  48. 'POST no-login-modify-password' => 'no-login-modify-password',
  49. ],
  50. ],
  51. [
  52. 'class' => 'yii\rest\UrlRule',
  53. 'pluralize' => false,
  54. 'controller' => 'v1/dashboard',
  55. 'extraPatterns' => [
  56. 'GET index' => 'index',
  57. 'GET my-index' => 'my-index',
  58. 'GET period-bonus' => 'period-bonus',
  59. 'GET bonus-num' => 'bonus-num',
  60. 'GET ba-index' => 'ba-index',
  61. ],
  62. ],
  63. [
  64. 'class' => 'yii\rest\UrlRule',
  65. 'pluralize' => false,
  66. 'controller' => 'v1/shop',
  67. 'extraPatterns' => [
  68. 'GET index' => 'index',
  69. 'GET reconsume' => 'reconsume',
  70. 'GET goods-detail/<id>' => 'goods-detail',
  71. 'GET show-cart' => 'show-cart',
  72. 'GET reconsume-cart' => 'reconsume-cart',
  73. 'POST sure-order' => 'sure-order',
  74. 'POST reconsume-sure-order' => 'reconsume-sure-order',
  75. 'GET pay-success' => 'pay-success',
  76. 'GET order-list' => 'order-list',
  77. 'GET dec-order-list' => 'dec-order-list',
  78. 'GET goods-active' => 'goods-active',
  79. 'GET order-export/<orderSn>' => 'order-export',
  80. 'GET dec-order-export/<orderSn>' => 'dec-order-export',
  81. 'POST sure-approach-order' => 'sure-approach-order',
  82. 'POST delete-approach-order' => 'delete-approach-order',
  83. 'POST verify-approach-order' => 'verify-approach-order',
  84. 'GET order-backing-out' => 'order-backing-out',
  85. 'GET ba-order-list' => 'ba-order-list',
  86. 'GET ba-product-list' => 'ba-product-list',
  87. 'GET ba-shopping-cart' => 'ba-shopping-cart',
  88. 'POST ba-sure-approach-order' => 'ba-sure-approach-order',
  89. 'POST ba-delete-approach-order' => 'ba-delete-approach-order',
  90. 'GET ba-dec-order-list' => 'ba-dec-order-list',
  91. 'GET ba-dec-order-export/<orderSn>' => 'ba-dec-order-export',
  92. ],
  93. ],
  94. [
  95. 'class' => 'yii\rest\UrlRule',
  96. 'pluralize' => false,
  97. 'controller' => 'v1/user',
  98. 'extraPatterns' => [
  99. 'GET index' => 'index',
  100. 'POST edit' => 'edit',
  101. 'POST password' => 'password',
  102. 'POST pay-password' => 'pay-password',
  103. 'GET,POST,PUT id-card' => 'id-card',
  104. 'GET rec-user' => 'rec-user',
  105. 'GET bind' => 'bind',
  106. 'GET,POST bind-edit/<id>' => 'bind-edit',
  107. 'GET,POST dec' => 'dec',
  108. 'GET,POST upgrade' => 'upgrade',
  109. 'POST upgrade-info' => 'upgrade-info',
  110. 'GET dec-package' => 'dec-package',
  111. 'GET full-info' => 'full-info',
  112. 'GET get-auto-place' => 'get-auto-place',
  113. 'GET user-base-info' => 'user-base-info',
  114. 'GET ba-info' => 'ba-info',
  115. 'POST ba-edit' => 'ba-edit',
  116. 'POST ba-password' => 'ba-password',
  117. 'POST ba-pay-password' => 'ba-pay-password',
  118. 'GET,POST ba-dec' => 'ba-dec',
  119. 'GET ba-user-info' => 'ba-user-info',
  120. ],
  121. ],
  122. [
  123. 'class' => 'yii\rest\UrlRule',
  124. 'pluralize' => false,
  125. 'controller' => 'v1/atlas',
  126. 'extraPatterns' => [
  127. 'GET main-user-info' => 'main-user-info',
  128. 'GET network' => 'network',
  129. 'GET network-list' => 'network-list',
  130. 'GET relation' => 'relation',
  131. 'GET relation-list' => 'relation-list',
  132. 'GET get-period' => 'get-period',
  133. 'GET brand-ambassador-list' => 'brand-ambassador-list',
  134. ],
  135. ],
  136. [
  137. 'class' => 'yii\rest\UrlRule',
  138. 'pluralize' => false,
  139. 'controller' => 'v1/bonus',
  140. 'extraPatterns' => [
  141. 'GET index' => 'index',
  142. 'GET wallet-flow' => 'wallet-flow',
  143. 'GET new' => 'new',
  144. 'GET teams' => 'teams',
  145. 'GET other' => 'other',
  146. 'GET real-time-perf' => 'real-time-perf',
  147. 'GET flow-bt' => 'flow-bt',
  148. 'GET trace-fl' => 'trace-fl',
  149. 'GET dec-period' => 'dec-period',
  150. 'GET fc-point' => 'fc-point',
  151. 'GET historical-cumulative-bonus' => 'historical-cumulative-bonus',
  152. ],
  153. ],
  154. [
  155. 'class' => 'yii\rest\UrlRule',
  156. 'pluralize' => false,
  157. 'controller' => 'v1/finance',
  158. 'extraPatterns' => [
  159. 'GET reconsume-pool-flow' => 'reconsume-pool-flow',
  160. 'GET withdraw' => 'withdraw',
  161. 'POST withdraw-add' => 'withdraw-add',
  162. 'POST withdraw-back' => 'withdraw-back',
  163. 'GET,POST,PUT invoice-add/<id>' => 'invoice-add',
  164. 'GET invoice-before-add' => 'invoice-before-add',
  165. 'GET invoice-after-add' => 'invoice-after-add',
  166. 'GET chk-withdraw-user' => 'chk-withdraw-user',
  167. 'GET invoice-show' => 'invoice-show',
  168. 'GET collect-bind' => 'collect-bind',
  169. 'GET available-balance' => 'available-balance',
  170. 'GET dec-list' => 'dec-list',
  171. 'GET transfer-list' => 'transfer-list',
  172. 'POST transfer-add' => 'transfer-add',
  173. 'GET chk-transfer-user' => 'chk-transfer-user',
  174. 'GET recharge' => 'recharge',
  175. 'GET,POST recharge-add' => 'recharge-add',
  176. 'GET,POST prove-add' => 'prove-add',
  177. 'GET mult-point' => 'mult-point',
  178. 'GET wd-mult-point' => 'wd-mult-point',
  179. ],
  180. ],
  181. [
  182. 'class' => 'yii\rest\UrlRule',
  183. 'pluralize' => false,
  184. 'controller' => 'v1/config',
  185. 'extraPatterns' => [
  186. 'GET base' => 'base',
  187. 'POST auto-withdraw' => 'auto-withdraw',
  188. // 'POST allow-reconsume-sms' => 'allow-reconsume-sms',
  189. 'GET receive-address-list' => 'receive-address-list',
  190. 'GET receive-address-one/<id>' => 'receive-address-one',
  191. 'POST receive-address-add' => 'receive-address-add',
  192. 'POST receive-address-edit' => 'receive-address-edit',
  193. 'POST receive-address-default' => 'receive-address-default',
  194. 'POST receive-address-delete' => 'receive-address-delete',
  195. 'GET ba-receive-address-list' => 'ba-receive-address-list',
  196. 'GET ba-receive-address-one/<id>' => 'ba-receive-address-one',
  197. 'POST ba-receive-address-add' => 'ba-receive-address-add',
  198. 'POST ba-receive-address-edit' => 'ba-receive-address-edit',
  199. 'POST ba-receive-address-default' => 'ba-receive-address-default',
  200. 'POST ba-receive-address-delete' => 'ba-receive-address-delete',
  201. ],
  202. ],
  203. [
  204. 'class' => 'yii\rest\UrlRule',
  205. 'pluralize' => false,
  206. 'controller' => 'v1/article',
  207. 'extraPatterns' => [
  208. 'GET index' => 'index',
  209. 'GET category' => 'category',
  210. 'GET list/<cid>' => 'list',
  211. 'GET list' => 'list',
  212. 'GET detail/<id>' => 'detail',
  213. 'GET detail' => 'detail',
  214. 'GET get-new-article' => 'get-new-article',
  215. ],
  216. ],
  217. [
  218. 'class' => 'yii\rest\UrlRule',
  219. 'pluralize' => false,
  220. 'controller' => 'v1/message',
  221. 'extraPatterns' => [
  222. 'GET list' => 'list',
  223. 'GET detail/<id>' => 'detail',
  224. 'GET detail' => 'detail',
  225. 'GET pull' => 'pull',
  226. 'GET unread-num' => 'unread-num',
  227. 'GET unread-text' => 'unread-text',
  228. ],
  229. ],
  230. ];