logistics/app/adminapi/controller/platform/PlatformController.php
unknown 110ada9672 3
2023-08-29 17:19:11 +08:00

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());
}
}