ProjectCountryController.php 917 字节
<?php

namespace App\Http\Controllers\Bside\Setting;

use App\Enums\Common\Code;
use App\Http\Controllers\Bside\BaseController;
use App\Http\Logic\Bside\Setting\ProjectCountryLogic;

/**
 * @name:项目配置多语言设置
 */
class ProjectCountryController extends BaseController
{
    /**
     * @name   :(当前项目的多语言列表)lists
     * @author :lyh
     * @method :post
     * @time   :2023/4/28 14:49
     */
    public function info(ProjectCountryLogic $projectCountryLogic){
        $lists = $projectCountryLogic->country_info();
        $this->response('success',Code::SUCCESS,$lists);
    }

    /**
     * @name   :(更新当前项目多语言设置)edit
     * @author :lyh
     * @method :post
     * @time   :2023/4/28 17:53
     */
    public function save(ProjectCountryLogic $projectCountryLogic){
        $projectCountryLogic->country_save();
        $this->response('success');
    }
}