func logoutHandler(request *http.Request, resp http.ResponseWriter, redis *models.RedisLogger, user *models.Account, p Parameter) { redis.DelOnlineUser(p.TokenId()) if len(user.Devs) > 0 { user.RmDevice(user.Devs[0]) } writeResponse(request.RequestURI, resp, nil, nil) }