<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: huajie <banhuajie@163.com>
// +----------------------------------------------------------------------

namespace Admin\Model;

use Common\Api\GameApi;
use Org\WeixinSDK\Weixin;
use Think\Model;

/**
 * 文档基础模型
 */
class RewardModel extends Model
{
    const REWARD_TYPE_REWARD = 1;
    const REWARD_TYPE_PUNISH = 2;
    const REWARD_TYPE_ALL = 3;

    public static $rewardTypes = [
        self::REWARD_TYPE_REWARD => '奖励',
        self::REWARD_TYPE_PUNISH => '惩罚',
        self::REWARD_TYPE_ALL => '双向'
    ];

    const GAME_RELATION_OTHER = 0;

    const SETTLEMENT_TYPE_ONLINE = 2;
    const SETTLMENT_TYPE_OFFLINE = 1;

    public static $settlementTypes = [
        self::SETTLEMENT_TYPE_ONLINE => '线上结算',
        self::SETTLMENT_TYPE_OFFLINE => '线下结算'
    ];

    const COMPANY_TYPE_PARTNER = 1;
    const COMPANY_TYPE_COMPANY = 2;
    const COMPANY_TYPE_INSIDE = 3;

    public static $companyTypes = [
        self::COMPANY_TYPE_PARTNER => '上游公司',
        self::COMPANY_TYPE_COMPANY => '下游公司',
        self::COMPANY_TYPE_INSIDE => '内部'
    ];

    public function __construct($name = '', $tablePrefix = '', $connection = '')
    {
        $this->tablePrefix = 'tab_';
        parent::__construct($name, $tablePrefix, $connection);
    }
}