|
|
@ -1,8 +1,8 @@ |
|
|
|
package controllers |
|
|
|
package base |
|
|
|
|
|
|
|
import ( |
|
|
|
"github.com/kataras/iris/v12" |
|
|
|
"leit.com/LAPP_CHEERSSON_BACKEND/models" |
|
|
|
"leit.com/LAPP_CHEERSSON_BACKEND/models/base" |
|
|
|
"leit.com/LAPP_CHEERSSON_BACKEND/utils" |
|
|
|
"leit.com/LAPP_CHEERSSON_BACKEND/web/middleware/jwts" |
|
|
|
"leit.com/LAPP_CHEERSSON_BACKEND/web/supports" |
|
|
@ -17,7 +17,7 @@ func Loglist(ctx iris.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
search := models.SerchData{} |
|
|
|
search := base.SerchData{} |
|
|
|
search.Userid = user.UserId |
|
|
|
search.Key = ctx.URLParam("searchKey") |
|
|
|
search.Val = ctx.URLParam("searchValue") |
|
|
@ -38,7 +38,7 @@ func Loglist(ctx iris.Context) { |
|
|
|
limit := int64(pageSize) * (int64(pageIndex)-1) |
|
|
|
offet := int64(pageSize) * int64(pageIndex) |
|
|
|
|
|
|
|
logs := new(models.LeitServerLog) |
|
|
|
logs := new(base.LeitServerLog) |
|
|
|
result, count := logs.FindLog(search, limit, offet) |
|
|
|
res := make(map[string]interface{}) |
|
|
|
res["data"] = result |