public async Task <IExecuteResult> GetAsync(string serverIPAddress) { serverIPAddress.CheckNotNullOrEmpty("服务器IP不能为空"); if (!RegexHelper.IsIpAddress(serverIPAddress)) { return(ExecuteResult.Error("请输入正确的IP地址格式", Infrastructure.StatusCode.ParameterError)); } return(ExecuteResult.Ok(await _npsServerService.GetAsync(serverIPAddress))); }
public async Task <IExecuteResult> GetRefreshTokenAsync(string refreshToken) { return(ExecuteResult.Ok(await _tokenService.GetRefreshTokenAsync(refreshToken))); }
public async Task <IExecuteResult> LoginAsync(LoginInput input) { return(ExecuteResult.Ok(await _tokenService.LoginAsync(input))); }
public async Task <IExecuteResult> DeleteAsync(NpsClientDeleteInput input) { return(ExecuteResult.Ok(await _npsClientService.DeleteAsync(input))); }
public async Task <IExecuteResult> OpenAsync(NpsClientOpenInput input) { return(ExecuteResult.Ok(await _npsClientService.OpenAsync(input))); }
public async Task <IExecuteResult> SearchAsync(PagingInput <NpsClientSearchInput> input) { return(ExecuteResult.Ok(await _npsClientService.SearchAsync(input))); }