<?php
/**
 * Created by PhpStorm.
 * User: leo
 * Date: 2018/3/6
 * Time: 上午11:12
 */
return [
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/site',
        'extraPatterns' => [
            'GET base-info' => 'base-info',
            'GET mobile-base-info' => 'mobile-base-info',
            'GET days-diff' => 'days-diff',
            'GET ad' => 'ad',
            'GET doc' => 'doc',
            'GET config' => 'config',
            'GET page-data' => 'page-data',
            'GET captcha' => 'captcha',
            'GET send-notice' => 'send-notice',
            'GET send-notify' => 'send-notify',
            'GET random-id' => 'random-id',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/file',
        'extraPatterns' => [
            'GET token' => 'token',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/oauth',
        'extraPatterns' => [
            'GET menu' => 'menu',
            'POST is-login-verify' => 'is-login-verify',
            'POST login' => 'login',
            'GET index' => 'index',
            'GET info' => 'info',
            'GET refresh-token' => 'refresh-token',
            'GET refresh-access-token' => 'refresh-access-token',
            'GET refresh-refresh-token' => 'refresh-refresh-token',
            'POST login-by-backend' => 'login-by-backend',
            'POST no-login-modify-password' => 'no-login-modify-password',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/dashboard',
        'extraPatterns' => [
            'GET index' => 'index',
            'GET my-index' => 'my-index',
            'GET period-bonus' => 'period-bonus',
            'GET bonus-num' => 'bonus-num',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/shop',
        'extraPatterns' => [
            'GET index' => 'index',
            'GET reconsume' => 'reconsume',
            'GET goods-detail/<id>' => 'goods-detail',
            'GET show-cart' => 'show-cart',
            'GET reconsume-cart' => 'reconsume-cart',
            'POST sure-order' => 'sure-order',
            'POST reconsume-sure-order' => 'reconsume-sure-order',
            'GET pay-success' => 'pay-success',
            'GET order-list' => 'order-list',
            'GET order-complete-list' => 'order-complete-list',
            'GET order-incomplete-list' => 'order-incomplete-list',
            'GET dec-order-list' => 'dec-order-list',
            'POST sure-approach-order' => 'sure-approach-order',
            'POST verify-approach-order' => 'verify-approach-order-ipay88',
            'POST delete-approach-order' => 'delete-approach-order',
            'POST i-pay88' => 'i-pay88',
            'GET,POST re-query-payment' => 're-query-payment',
            'GET logistics' => 'logistics',
            'GET,POST logistics-auto' => 'logistics-auto',
            'GET,POST upop-webhook' => 'upop-webhook',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/user',
        'extraPatterns' => [
            'GET index' => 'index',
            'POST edit' => 'edit',
            'POST password' => 'password',
            'POST pay-password' => 'pay-password',
            'GET,POST,PUT id-card' => 'id-card',
            'GET rec-user' => 'rec-user',
            'GET bind' => 'bind',
            'GET,POST bind-edit/<id>' => 'bind-edit',
            'GET,POST dec' => 'dec',
            'GET,POST upgrade' => 'upgrade',
            'POST upgrade-info' => 'upgrade-info',
            'GET dec-package' => 'dec-package',
            'GET full-info' => 'full-info',
            'GET user-base-info' => 'user-base-info',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/atlas',
        'extraPatterns' => [
            'GET main-user-info' => 'main-user-info',
            'GET network' => 'network',
            'GET network-list' => 'network-list',
            'GET get-period' => 'get-period',
            'GET scour-relation'  => 'scour-relation',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/bonus',
        'extraPatterns' => [
            'GET index' => 'index',
            'GET wallet-flow' => 'wallet-flow',
            'GET new' => 'new',
            'GET teams' => 'teams',
            'GET other' => 'other',
            'GET real-time-perf' => 'real-time-perf',
            'GET flow-bt' => 'flow-bt',
            'GET trace-fl' => 'trace-fl',
            'GET dec-period' => 'dec-period',
            'GET fc-point' => 'fc-point',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/finance',
        'extraPatterns' => [
            'GET reconsume-pool-flow' => 'reconsume-pool-flow',
            'GET withdraw' => 'withdraw',
            'POST withdraw-add' => 'withdraw-add',
            'POST withdraw-back' => 'withdraw-back',
            'GET,POST,PUT invoice-add/<id>' => 'invoice-add',
            'GET invoice-before-add' => 'invoice-before-add',
            'GET invoice-after-add' => 'invoice-after-add',
            'GET chk-withdraw-user' => 'chk-withdraw-user',
            'GET invoice-show' => 'invoice-show',
            'GET collect-bind' => 'collect-bind',
            'GET available-balance' => 'available-balance',
            'GET dec-list' => 'dec-list',
            'GET transfer-list' => 'transfer-list',
            'POST transfer-add' => 'transfer-add',
            'GET chk-transfer-user' => 'chk-transfer-user',
            'GET recharge' => 'recharge',
            'GET,POST recharge-add' => 'recharge-add',
            'GET,POST prove-add' => 'prove-add',
            'GET mult-point' => 'mult-point',
            'GET wd-mult-point' => 'wd-mult-point',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/config',
        'extraPatterns' => [
            'GET base' => 'base',
            'POST auto-withdraw' => 'auto-withdraw',
//            'POST allow-reconsume-sms' => 'allow-reconsume-sms',
            'GET receive-address-list' => 'receive-address-list',
            'GET receive-address-one/<id>' => 'receive-address-one',
            'POST receive-address-add' => 'receive-address-add',
            'POST receive-address-edit' => 'receive-address-edit',
            'POST receive-address-default' => 'receive-address-default',
            'POST receive-address-delete' => 'receive-address-delete',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/article',
        'extraPatterns' => [
            'GET index' => 'index',
            'GET category' => 'category',
            'GET list/<cid>' => 'list',
            'GET list' => 'list',
            'GET detail/<id>' => 'detail',
            'GET detail' => 'detail',
            'GET get-new-article' => 'get-new-article',
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'pluralize' => false,
        'controller' => 'v1/message',
        'extraPatterns' => [
            'GET list' => 'list',
            'GET detail/<id>' => 'detail',
            'GET detail' => 'detail',
            'GET pull' => 'pull',
            'GET unread-num' => 'unread-num',
            'GET unread-text' => 'unread-text',
        ],
    ],
];