23 lines
517 B
23 lines
517 B
<?php
|
|
namespace app\home\service;
|
|
|
|
use app\model\LanguageSettingModel;
|
|
use app\model\ServiceSettingModel;
|
|
|
|
/**
|
|
* 语言相关
|
|
*/
|
|
class LanguageService extends BaseHomeService
|
|
{
|
|
public function getLangList() : array
|
|
{
|
|
$list=LanguageSettingModel::getLangList();
|
|
return $this->toData(0,'Request successful.',$list);
|
|
}
|
|
public function getServiceList() : array
|
|
{
|
|
$list=ServiceSettingModel::getServiceList();
|
|
return $this->toData(0,'Request successful.',$list);
|
|
}
|
|
|
|
}
|