WebSettingCountryController.php 981 字节
<?php

namespace App\Http\Controllers\Bside\Setting;

use App\Enums\Common\Code;
use App\Http\Controllers\Bside\BaseController;
use App\Http\Logic\Bside\Setting\WebSettingCountryLogic;
use App\Models\Project\Country as CountryModel;

class WebSettingCountryController extends BaseController
{
    /**
     * @name   :列表lists
     * @author :lyh
     * @method :post
     * @time   :2023/4/28 14:40
     */
    public function lists(WebSettingCountryLogic $webSettingCountryLogic){
        $lists = $webSettingCountryLogic->country_list();
        $this->response('success',Code::SUCCESS,$lists);
    }

    /**
     * @name   :(获取当前项目设置的多语言列表)user_get_list
     * @author :lyh
     * @method :post
     * @time   :2023/4/28 16:55
     */
    public function get_country_info(WebSettingCountryLogic $webSettingCountryLogic){
        $info = $webSettingCountryLogic->get_country_info();
        $this->response('success',Code::SUCCESS,$info);
    }
}