public ApiResult <string> UnbindOAuth([FromQuery] string id) { var uc = UserConnect.FindByKey(id); if (uc == null) { throw ApiException.Common(RequestLocalizer["Data not found"]); } if (!IsSupperAdmin && uc.UserID != AppUser.ID) { throw ApiException.Common(RequestLocalizer["No permission"]); } uc.Delete(); return(ApiResult.Ok()); }