package cache import ( "eta/eta_api/models/system" "eta/eta_api/utils" "fmt" ) func AdminOperateRecord(adminId int, realName, uuid, uri, params, ip, userAgent, header string) bool { record := new(system.AdminOperateRecord) record.AdminId = adminId record.RealName = realName record.Uuid = uuid record.Uri = uri record.Params = params record.Ip = ip record.UserAgent = userAgent record.Header = header if utils.Re == nil { err := utils.Rc.LPush(utils.CACHE_KEY_ADMIN_OPERATE_RECORD, record) if err != nil { fmt.Println("AdminOperateRecord LPush Err:" + err.Error()) } return true } return false }