<?php

/**
 * desc 退出俱乐部
 */

namespace Game\Controller\Club;

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

class ExitClub extends ControllerBase {

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

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

        return ErrorDefine::SUCCESS;
    }
}