From cdec4603de73a100bb4e06ff109bf27f328ca6c3 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 18 Feb 2020 16:51:19 +0800 Subject: [PATCH] update Former-commit-id: b50c7b1a213c5eadf00dadce68e73234fb5ecede --- projects/Infrastructure/Infrastructure.csproj | 20 +++++++++---------- .../Application/Models/ApiResponse.cs | 3 +++ projects/IoT.Shared/IoT.Shared.csproj | 8 ++++---- .../Services/IoTNode/IoTNodeClient.cs | 2 -- projects/IoTNode/IoTNode.csproj | 2 +- projects/UserCenter/UserCenter.csproj | 6 +++--- 6 files changed, 21 insertions(+), 20 deletions(-) diff --git a/projects/Infrastructure/Infrastructure.csproj b/projects/Infrastructure/Infrastructure.csproj index f6fd819f..a01dfa97 100644 --- a/projects/Infrastructure/Infrastructure.csproj +++ b/projects/Infrastructure/Infrastructure.csproj @@ -9,34 +9,34 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + + + + - + - + - - + + - + diff --git a/projects/IoT.Shared/Application/Models/ApiResponse.cs b/projects/IoT.Shared/Application/Models/ApiResponse.cs index e9401045..9ce34bb8 100644 --- a/projects/IoT.Shared/Application/Models/ApiResponse.cs +++ b/projects/IoT.Shared/Application/Models/ApiResponse.cs @@ -1,10 +1,13 @@ using System; +using System.ComponentModel.DataAnnotations; namespace Application.Models { public class ApiResponse { + [Display(Name = "ÀàÐÍ")] public int type { get; set; } + public int code { get; set; } public string message { get; set; } public object data { get; set; } diff --git a/projects/IoT.Shared/IoT.Shared.csproj b/projects/IoT.Shared/IoT.Shared.csproj index ce0c2921..706db4c4 100644 --- a/projects/IoT.Shared/IoT.Shared.csproj +++ b/projects/IoT.Shared/IoT.Shared.csproj @@ -8,14 +8,14 @@ - - - + + + - + diff --git a/projects/IoT.Shared/Services/IoTNode/IoTNodeClient.cs b/projects/IoT.Shared/Services/IoTNode/IoTNodeClient.cs index 80ed29cf..7f76e657 100644 --- a/projects/IoT.Shared/Services/IoTNode/IoTNodeClient.cs +++ b/projects/IoT.Shared/Services/IoTNode/IoTNodeClient.cs @@ -26,13 +26,11 @@ namespace IoT.Shared.Services private HubConnection Connection; private readonly IServiceProvider applicationServices; private readonly IConfiguration _cfg; - public string ConnectionId { get; private set; } public IoTNodeClient(IServiceProvider applicationServices, IConfiguration configuration) { this.applicationServices = applicationServices; this._cfg = configuration; - this.ConnectionId = Guid.NewGuid().ToBase62(); } public Task StartAsync(CancellationToken cancellationToken) diff --git a/projects/IoTNode/IoTNode.csproj b/projects/IoTNode/IoTNode.csproj index 91e64e0c..463517f6 100644 --- a/projects/IoTNode/IoTNode.csproj +++ b/projects/IoTNode/IoTNode.csproj @@ -4,7 +4,7 @@ true - + diff --git a/projects/UserCenter/UserCenter.csproj b/projects/UserCenter/UserCenter.csproj index e7baa364..759e4b56 100644 --- a/projects/UserCenter/UserCenter.csproj +++ b/projects/UserCenter/UserCenter.csproj @@ -7,9 +7,9 @@ - - - + + +