logs_cache.go 503 B

1234567891011121314
  1. package cache
  2. // record more information
  3. func RecordNewLogs(adminId int, request, response string, realName, operateIp, model string) bool {
  4. /*log := &models.OperateLogs{AdminId: adminId, SysUserRealName: realName, OperateTime: time.Now(), Request: request, Response: response, OperateIp: operateIp, Model: model}
  5. if utils.Re == nil {
  6. err := utils.Rc.LPush(utils.CACHE_KEY_LOGS, log)
  7. if err != nil {
  8. fmt.Println("RecordNewLogs LPush Err:" + err.Error())
  9. }
  10. return true
  11. }*/
  12. return false
  13. }