<?php

/**
 * 清空新车通知--临时用
 */

namespace Game\Controller\Car;

use Framework\Define\ErrorDefine;
use Framework\MVC\ControllerBase;
use Game\Data\Car\CarNoticeData;
use Game\Protobuf\CGClearNewCarNotice;

class CG_ClearNewCarNotice extends ControllerBase
{

    public function __construct()
    {
        $this->message = new CGClearNewCarNotice();
    }

    public function run(): int
    {
        $carNoticeData = new CarNoticeData($this->playerId);
        $carNoticeData->updateDB([]);
        return ErrorDefine::SUCCESS;
    }
}
