no message
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\controller\lottery;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\lottery\LotteryCategoryLists;
|
||||
use app\adminapi\logic\lottery\LotteryCategoryLogic;
|
||||
use app\adminapi\validate\lottery\LotteryCategoryValidate;
|
||||
|
||||
class LotteryCategoryController extends BaseAdminController
|
||||
{
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new LotteryCategoryLists());
|
||||
}
|
||||
|
||||
public function add()
|
||||
{
|
||||
$params = (new LotteryCategoryValidate())->post()->goCheck('add');
|
||||
LotteryCategoryLogic::add($params);
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
|
||||
public function edit()
|
||||
{
|
||||
$params = (new LotteryCategoryValidate())->post()->goCheck('edit');
|
||||
$result = LotteryCategoryLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(LotteryCategoryLogic::getError());
|
||||
}
|
||||
|
||||
public function delete()
|
||||
{
|
||||
$params = (new LotteryCategoryValidate())->post()->goCheck('delete');
|
||||
LotteryCategoryLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
public function detail()
|
||||
{
|
||||
$params = (new LotteryCategoryValidate())->goCheck('detail');
|
||||
$result = LotteryCategoryLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\controller\lottery;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\lottery\LotteryDrawLists;
|
||||
use app\adminapi\logic\lottery\LotteryDrawLogic;
|
||||
use app\adminapi\validate\lottery\LotteryDrawValidate;
|
||||
|
||||
class LotteryDrawController extends BaseAdminController
|
||||
{
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new LotteryDrawLists());
|
||||
}
|
||||
|
||||
public function detail()
|
||||
{
|
||||
$params = (new LotteryDrawValidate())->goCheck('detail');
|
||||
$result = LotteryDrawLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function delete()
|
||||
{
|
||||
$params = (new LotteryDrawValidate())->post()->goCheck('delete');
|
||||
LotteryDrawLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\controller\lottery;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\lottery\LotteryRegionLists;
|
||||
use app\adminapi\logic\lottery\LotteryRegionLogic;
|
||||
use app\adminapi\validate\lottery\LotteryRegionValidate;
|
||||
|
||||
class LotteryRegionController extends BaseAdminController
|
||||
{
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new LotteryRegionLists());
|
||||
}
|
||||
|
||||
public function add()
|
||||
{
|
||||
$params = (new LotteryRegionValidate())->post()->goCheck('add');
|
||||
LotteryRegionLogic::add($params);
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
|
||||
public function edit()
|
||||
{
|
||||
$params = (new LotteryRegionValidate())->post()->goCheck('edit');
|
||||
$result = LotteryRegionLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(LotteryRegionLogic::getError());
|
||||
}
|
||||
|
||||
public function delete()
|
||||
{
|
||||
$params = (new LotteryRegionValidate())->post()->goCheck('delete');
|
||||
LotteryRegionLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
public function detail()
|
||||
{
|
||||
$params = (new LotteryRegionValidate())->goCheck('detail');
|
||||
$result = LotteryRegionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user