<?php

namespace app\common\enum\user;

use app\common\enum\CommonEnum;

class UserSignScoreEnum extends CommonEnum
{
    // 1-收入，2-支出
    const PM = [
        'Income' => ['code' => 1, 'name' => '收入'],
        'Expend' => ['code' => 2, 'name' => '支出'],
    ];

    // 积分状态：1-有效，0-失效，-1-待确认
    const STATUS = [
        'Valid' => ['code' => 1, 'name' => '有效'],
        'Invalid' => ['code' => 0, 'name' => '失效'],
        'Pending' => ['code' => -1, 'name' => '待确认'],
    ];

    // 积分来源类型：1-签到，2-分享好友注册赠送，3-自己下单赠送，4-好友下单赠送，5-购买产品消耗
    const SOURCE_TYPE = [
        'SignIn' => ['code' => 1, 'name' => '签到'],
        'ShareRegister' => ['code' => 2, 'name' => '分享好友注册赠送'],
        'SelfOrder' => ['code' => 3, 'name' => '自己下单赠送'],
        'FriendOrder' => ['code' => 4, 'name' => '好友下单赠送'],
        'BuyProduct' => ['code' => 5, 'name' => '购买产品消耗'],
    ];

    const ORDER_TYPE = parent::ORDER_TYPE;
}