添加注解

This commit is contained in:
2025-03-18 21:39:02 +08:00
parent d0681e7c36
commit 71ec622afb
2 changed files with 43 additions and 0 deletions

View File

@ -8,6 +8,16 @@ use think\admin\helper\QueryHelper;
class PointLog extends Controller class PointLog extends Controller
{ {
/**
* 积分记录列表
* 显示积分记录的表格数据,支持按时间范围筛选。
* @auth true
* @menu true
* @return void
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function index() public function index()
{ {
$this->title = '积分记录'; $this->title = '积分记录';

View File

@ -7,8 +7,17 @@ use think\admin\Controller;
use think\admin\helper\QueryHelper; use think\admin\helper\QueryHelper;
use think\admin\model\SystemUser; use think\admin\model\SystemUser;
/**
* 部门管理控制器
*/
class Dept extends Controller class Dept extends Controller
{ {
/**
* 部门列表页面
* 显示部门管理的表格数据,支持搜索和筛选。
* @auth true
* @menu true
*/
public function index() public function index()
{ {
$this->title = '部门管理'; $this->title = '部门管理';
@ -19,6 +28,12 @@ class Dept extends Controller
}); });
} }
/**
* 添加部门页面
* 提供表单用于添加新部门,并加载用户列表以供选择负责人。
* @auth true
* @menu true
*/
public function add() public function add()
{ {
$this->title = '添加部门'; $this->title = '添加部门';
@ -26,6 +41,12 @@ class Dept extends Controller
TicketDept::mForm('form'); TicketDept::mForm('form');
} }
/**
* 编辑部门页面
* 提供表单用于编辑现有部门信息,并加载用户列表以供选择负责人。
* @auth true
* @menu true
*/
public function edit() public function edit()
{ {
$this->title = '编辑部门'; $this->title = '编辑部门';
@ -33,12 +54,24 @@ class Dept extends Controller
TicketDept::mForm('form'); TicketDept::mForm('form');
} }
/**
* 删除部门
* 根据提交的 ID 删除指定部门。
* @auth true
* @menu true
*/
public function remove() public function remove()
{ {
$this->_applyFormToken(); $this->_applyFormToken();
TicketDept::mDelete('id'); TicketDept::mDelete('id');
} }
/**
* 更新部门状态
* 根据提交的 ID 和状态值更新部门的状态。
* @auth true
* @menu true
*/
public function status() public function status()
{ {
TicketDept::mSave($this->_vali([ TicketDept::mSave($this->_vali([