This commit is contained in:
PandaGoAdmin
2021-12-17 11:55:49 +08:00
parent b6b95566e3
commit da9e1cf29c
13 changed files with 134 additions and 47 deletions

View File

@@ -15,7 +15,7 @@ func InitLogRouter(router *gin.RouterGroup) {
logLogin := router.Group("logLogin")
logLoginListLog := ctx.NewLogInfo("获取登录日志列表")
logLogin.GET("logLoginList", func(c *gin.Context) {
logLogin.GET("list", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(logLoginListLog).Handle(login.GetLoginLogList)
})
@@ -24,16 +24,16 @@ func InitLogRouter(router *gin.RouterGroup) {
ctx.NewReqCtxWithGin(c).WithLog(getLogLoginLog).Handle(login.GetLoginLog)
})
inserLogLoginLog := ctx.NewLogInfo("添加登录日志信息")
logLogin.POST("", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(inserLogLoginLog).Handle(login.InsertLoginLog)
})
updateLogLoginLog := ctx.NewLogInfo("修改登录日志信息")
logLogin.PUT("", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(updateLogLoginLog).Handle(login.UpdateLoginLog)
})
deleteLogLoginAllLog := ctx.NewLogInfo("删除登录日志信息")
logLogin.DELETE("all", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(deleteLogLoginAllLog).Handle(login.DeleteAll)
})
deleteLogLoginLog := ctx.NewLogInfo("删除登录日志信息")
logLogin.DELETE(":infoId", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(deleteLogLoginLog).Handle(login.DeleteLoginLog)
@@ -46,7 +46,7 @@ func InitLogRouter(router *gin.RouterGroup) {
logOper := router.Group("logOper")
logOperListLog := ctx.NewLogInfo("获取操作日志列表")
logOper.GET("logOperList", func(c *gin.Context) {
logOper.GET("list", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(logOperListLog).Handle(oper.GetOperLogList)
})
@@ -55,6 +55,11 @@ func InitLogRouter(router *gin.RouterGroup) {
ctx.NewReqCtxWithGin(c).WithLog(getLogOperLog).Handle(oper.GetOperLog)
})
deleteLogOperAllLog := ctx.NewLogInfo("删除操作日志信息")
logOper.DELETE("all", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(deleteLogOperAllLog).Handle(oper.DeleteAll)
})
deleteLogOperLog := ctx.NewLogInfo("删除操作日志信息")
logOper.DELETE(":operId", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(deleteLogOperLog).Handle(oper.DeleteOperLog)