初始化v1
This commit is contained in:
88
internal/controller/admin/log.go
Normal file
88
internal/controller/admin/log.go
Normal file
@@ -0,0 +1,88 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
"nl-video-api/internal/service"
|
||||
)
|
||||
|
||||
// LogController 日志管理控制器
|
||||
type LogController struct{}
|
||||
|
||||
// NewLogController 创建日志管理控制器实例
|
||||
func NewLogController() *LogController {
|
||||
return &LogController{}
|
||||
}
|
||||
|
||||
// ===== 管理员日志管理 =====
|
||||
|
||||
// AdminLogList 获取管理员日志列表
|
||||
func (c *LogController) AdminLogList(r *ghttp.Request) {
|
||||
service.NewLogService().AdminLogList(r)
|
||||
}
|
||||
|
||||
// AdminLogDetail 获取管理员日志详情
|
||||
func (c *LogController) AdminLogDetail(r *ghttp.Request) {
|
||||
service.NewLogService().AdminLogDetail(r)
|
||||
}
|
||||
|
||||
// AdminLogDelete 删除管理员日志
|
||||
func (c *LogController) AdminLogDelete(r *ghttp.Request) {
|
||||
service.NewLogService().AdminLogDelete(r)
|
||||
}
|
||||
|
||||
// AdminLogBatchDelete 批量删除管理员日志
|
||||
func (c *LogController) AdminLogBatchDelete(r *ghttp.Request) {
|
||||
service.NewLogService().AdminLogBatchDelete(r)
|
||||
}
|
||||
|
||||
// AdminLogClear 清空管理员日志
|
||||
func (c *LogController) AdminLogClear(r *ghttp.Request) {
|
||||
service.NewLogService().AdminLogClear(r)
|
||||
}
|
||||
|
||||
// AdminLogExport 导出管理员日志
|
||||
func (c *LogController) AdminLogExport(r *ghttp.Request) {
|
||||
service.NewLogService().AdminLogExport(r)
|
||||
}
|
||||
|
||||
// AdminLogStats 管理员日志统计
|
||||
func (c *LogController) AdminLogStats(r *ghttp.Request) {
|
||||
service.NewLogService().AdminLogStats(r)
|
||||
}
|
||||
|
||||
// ===== 用户日志管理 =====
|
||||
|
||||
// UserLogList 获取用户日志列表
|
||||
func (c *LogController) UserLogList(r *ghttp.Request) {
|
||||
service.NewLogService().UserLogList(r)
|
||||
}
|
||||
|
||||
// UserLogDetail 获取用户日志详情
|
||||
func (c *LogController) UserLogDetail(r *ghttp.Request) {
|
||||
service.NewLogService().UserLogDetail(r)
|
||||
}
|
||||
|
||||
// UserLogDelete 删除用户日志
|
||||
func (c *LogController) UserLogDelete(r *ghttp.Request) {
|
||||
service.NewLogService().UserLogDelete(r)
|
||||
}
|
||||
|
||||
// UserLogBatchDelete 批量删除用户日志
|
||||
func (c *LogController) UserLogBatchDelete(r *ghttp.Request) {
|
||||
service.NewLogService().UserLogBatchDelete(r)
|
||||
}
|
||||
|
||||
// UserLogClear 清空用户日志
|
||||
func (c *LogController) UserLogClear(r *ghttp.Request) {
|
||||
service.NewLogService().UserLogClear(r)
|
||||
}
|
||||
|
||||
// UserLogExport 导出用户日志
|
||||
func (c *LogController) UserLogExport(r *ghttp.Request) {
|
||||
service.NewLogService().UserLogExport(r)
|
||||
}
|
||||
|
||||
// UserLogStats 用户日志统计
|
||||
func (c *LogController) UserLogStats(r *ghttp.Request) {
|
||||
service.NewLogService().UserLogStats(r)
|
||||
}
|
||||
Reference in New Issue
Block a user