feat(permission): 为权限树接口添加状态查询参数和返回值
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m22s

- 新增 PermissionTreeRequest DTO 支持 status 查询参数
- PermissionTreeNode 返回值新增 status 字段
- Store 层 GetAll 方法支持状态过滤
- Handler 层使用 QueryParser 解析请求参数
This commit is contained in:
2026-02-02 17:12:14 +08:00
parent 76b539e867
commit 5851cc6403
6 changed files with 21 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ func registerPermissionRoutes(api fiber.Router, h *admin.PermissionHandler, doc
Register(permissions, doc, groupPath, "GET", "/tree", h.GetTree, RouteSpec{
Summary: "获取权限树",
Tags: []string{"权限"},
Input: nil, // 无参数或 Query 参数
Input: new(dto.PermissionTreeRequest),
Output: new([]*dto.PermissionTreeNode),
Auth: true,
})