<?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 ba-base-info' => 'ba-base-info',
            'GET send-notice' => 'send-notice',
            'GET send-notify' => 'send-notify',
            'GET get-instance' => 'get-instance',
            'GET languages' => 'languages',
            'GET countries' => 'countries',
            'GET banks' => 'banks',
        ],
    ],
    [
        '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',
            'GET ba-index' => 'ba-index',
        ],
    ],
    [
        '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 own-order' => 'own-order',
            'GET member-order' => 'member-order',
            'GET dec-order-list' => 'dec-order-list',
            'GET goods-active' => 'goods-active',
            'GET order-export/<orderSn>' => 'order-export',
            'GET dec-order-export/<orderSn>' => 'dec-order-export',
            'POST sure-approach-order' => 'sure-approach-order',
            'POST delete-approach-order' => 'delete-approach-order',
            'POST verify-approach-order' => 'verify-approach-order',
            'GET order-backing-out' => 'order-backing-out',
            'GET ba-order-list' => 'ba-order-list',
            'GET ba-product-list' => 'ba-product-list',
            'GET ba-shopping-cart' => 'ba-shopping-cart',
            'POST ba-sure-approach-order' => 'ba-sure-approach-order',
            'POST ba-delete-approach-order' => 'ba-delete-approach-order',
            'GET ba-dec-order-list' => 'ba-dec-order-list',
            'GET ba-dec-order-export/<orderSn>' => 'ba-dec-order-export',
            'POST sure-approach-reconsume-order' => 'sure-approach-reconsume-order',
            'GET auto-maintenance' => 'auto-maintenance',
            'POST auto-maintenance-sure-order' => 'auto-maintenance-sure-order',
            'POST auto-maintenance-approach-sure-order' => 'auto-maintenance-approach-sure-order',
        ],
    ],
    [
        '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 get-auto-place' => 'get-auto-place',
            'GET user-base-info' => 'user-base-info',
            'GET inspect-network' => 'inspect-network',
            'GET ba-info' => 'ba-info',
            'POST ba-edit' => 'ba-edit',
            'POST ba-password' => 'ba-password',
            'POST ba-pay-password' => 'ba-pay-password',
            'GET,POST ba-dec' => 'ba-dec',
            'GET ba-user-info' => 'ba-user-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 relation' => 'relation',
            'GET relation-list' => 'relation-list',
            'GET get-period' => 'get-period',
            'GET brand-ambassador-list' => 'brand-ambassador-list',
        ],
    ],
    [
        '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',
            'GET historical-cumulative-bonus' => 'historical-cumulative-bonus',
            'GET period' => 'period',
//            'POST sent-user-performance' => 'sent-user-performance', //手动发奖金接口
        ],
    ],
    [
        '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',
            'GET,POST transfer-add' => 'transfer-add',
            'GET chk-transfer-user' => 'chk-transfer-user',
            'GET recharge' => 'recharge',
            'GET,POST recharge-add' => 'recharge-add',
            'POST recharge-update' => 'recharge-update',
            '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',

            'GET ba-receive-address-list' => 'ba-receive-address-list',
            'GET ba-receive-address-one/<id>' => 'ba-receive-address-one',
            'POST ba-receive-address-add' => 'ba-receive-address-add',
            'POST ba-receive-address-edit' => 'ba-receive-address-edit',
            'POST ba-receive-address-default' => 'ba-receive-address-default',
            'POST ba-receive-address-delete' => 'ba-receive-address-delete',
            'GET region-list' => 'region-list',
        ],
    ],
    [
        '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',
        ],
    ],
];
