<?php

/**
 * desc 获取自己的俱乐部ID
 */

namespace Game\Controller\Club;

use Framework\Define\ErrorDefine;
use Framework\MVC\ControllerBase;
use Game\Logic\Club\ClubLogic;
use Game\Protobuf\CGFindMyClubID;

class FindMyClubID extends ControllerBase {

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

    public function run(): int {
        if(!$this->findMyClubID()) {
            return ErrorDefine::ERROR_INTERNAL;
        }

        return ErrorDefine::SUCCESS;
    }
}