43 lines
964 B
PHP
43 lines
964 B
PHP
<?php
|
|
namespace app\adminapi\controller\platform;
|
|
|
|
|
|
use app\adminapi\controller\BaseAdminController;
|
|
use app\adminapi\lists\platform\PlatformLists;
|
|
use app\adminapi\logic\platform\PlatformLogic;
|
|
use app\adminapi\validate\platform\PlatformValidate;
|
|
|
|
|
|
/**
|
|
* Platform控制器
|
|
* Class PlatformController
|
|
* @package app\adminapi\controller
|
|
*/
|
|
class PlatformController extends BaseAdminController
|
|
{
|
|
|
|
public function info() {
|
|
$result = PlatformLogic::info();
|
|
return $this->data($result);
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* @notes 编辑
|
|
* @return \think\response\Json
|
|
* @author likeadmin
|
|
* @date 2023/08/28 13:37
|
|
*/
|
|
public function save()
|
|
{
|
|
$params = (new PlatformValidate())->post()->goCheck('save');
|
|
$result = PlatformLogic::saveData($params);
|
|
if (true === $result) {
|
|
return $this->success('保存成功', [], 1, 1);
|
|
}
|
|
return $this->fail(PlatformLogic::getError());
|
|
}
|
|
|
|
|
|
} |