<?php

/**
 * desc 获取俱乐部商品购买记录
 */

namespace Game\Controller\Club;

use Framework\Define\ErrorDefine;
use Framework\MVC\ControllerBase;
use Game\Logic\Club\ClubStoreLogic;
use Game\Protobuf\CGGetClubStoreRecord;

class GetStoreRecord extends ControllerBase {

    use ClubStoreLogic;
    public function __construct() {
        $this->message = new CGGetClubStoreRecord();
    }

    public function run(): int {

        if(!$this->getStoreRecord()) {
            return ErrorDefine::ERROR_INTERNAL;
        }

        return ErrorDefine::SUCCESS;
    }
}