service.xpcool.com/internal/model/dto/log.go
夏犀麟 4aca0c7f6f
Some checks failed
Build and Deploy (service.xpcool.com) / build-and-deploy (push) Failing after 5m7s
feat(house): 实现看房模块后端功能
- 新增 9 张房屋相关数据表(社区/楼宇/房源/价格快照/交易/设施/社区设施/学区/偏好)
- 添加菜单权限种子数据并绑定超级管理员角色
- 生成 DAO 层代码和实体对象
- 实现房屋模块 API 接口(社区/房源/看板)和控制器服务层
- 支持多平台软关联匹配、笋盘标记和低可信度标记功能
- 更新超级管理员账号为 xxcool/xxCool@2026
- 调整 RBAC 菜单结构,移除管理员管理功能,新增日志管理菜单
- 修复 RBAC 安全漏洞,确保禁用角色权限失效
- 重构认证模块,将登录相关接口迁移到统一包结构下
- 移除废弃的管理模块和工具类接口定义
- 为通用工具包添加中文注释和文档说明
2026-08-26 23:42:38 +08:00

52 lines
1.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package dto — 日志监控相关类型。
package dto
// LogFile 描述一个服务器日志文件。
type LogFile struct {
Name string
Path string
Size int64
ModTime string
}
// LogQuery 管理员操作日志admin 系统日志)分页查询参数。
type LogQuery struct {
Page int
Size int
AdminID uint64 // 按管理员过滤
Permission string // 按权限码/路径关键字过滤
}
// LogItem 一条管理员操作日志记录。
type LogItem struct {
Id uint64
AdminID uint64
Permission string
Method string
Path string
IP string
Param string
DurationMS uint
StatusCode int
CreatedAt string
}
// LoginLogQuery 管理员登录日志分页查询参数。
type LoginLogQuery struct {
Page int
Size int
Username string // 按账号过滤
Status *int // 按结果过滤1 成功 0 失败nil 为全部
}
// LoginLogItem 一条管理员登录日志记录。
type LoginLogItem struct {
Id uint64
Username string
IP string
UserAgent string
Status int
FailReason string
CreatedAt string
}