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