Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
 public async Task <IExecuteResult> GetRefreshTokenAsync(string refreshToken)
 {
     return(ExecuteResult.Ok(await _tokenService.GetRefreshTokenAsync(refreshToken)));
 }
Exemplo n.º 3
0
 public async Task <IExecuteResult> LoginAsync(LoginInput input)
 {
     return(ExecuteResult.Ok(await _tokenService.LoginAsync(input)));
 }
Exemplo n.º 4
0
 public async Task <IExecuteResult> DeleteAsync(NpsClientDeleteInput input)
 {
     return(ExecuteResult.Ok(await _npsClientService.DeleteAsync(input)));
 }
Exemplo n.º 5
0
 public async Task <IExecuteResult> OpenAsync(NpsClientOpenInput input)
 {
     return(ExecuteResult.Ok(await _npsClientService.OpenAsync(input)));
 }
Exemplo n.º 6
0
 public async Task <IExecuteResult> SearchAsync(PagingInput <NpsClientSearchInput> input)
 {
     return(ExecuteResult.Ok(await _npsClientService.SearchAsync(input)));
 }