<?php
|
|
namespace app\api\controller\branch\admin;
|
|
use app\api\controller\branch\Admin;
|
use app\api\model\branch\ActivityUser as ActivityUserModel;
|
// use app\api\service\order\ExportService;
|
|
/**
|
* 报名用户控制器
|
*/
|
class ActivityUser extends Admin
|
{
|
/**
|
* 用户报名列表
|
*/
|
public function lists()
|
{
|
$data = $this->postData();
|
$model = new ActivityUserModel;
|
$list = $model->getListForActivity($data);
|
|
return $this->renderSuccess('', compact('list'));
|
}
|
|
|
/**
|
* 软删除报名用户
|
*/
|
public function delete($order_id)
|
{
|
$model = ActivityUserModel::detail($order_id);
|
if (!$model->setDelete()) {
|
return $this->renderError('删除失败');
|
}
|
return $this->renderSuccess('删除成功');
|
}
|
|
}
|