xf 2 năm trước cách đây
mục cha
commit
b54770f5d7

+ 2 - 2
src/Sharing.Province/Controllers/ProvinceController.cs

@@ -35,8 +35,8 @@ namespace Sharing.Province.Controllers
             await pusher.PushOrderCreatedAsync(new SubmitCaseInfoRequest(), HttpContext.RequestAborted);
             var a = _channelConfigurationManager.GetConfigurationProvince().HuiJu;
 
-            BaseReponse.Success();
-            BaseReponse.Failed("");
+            Reponse.Success();
+            Reponse.Failed("");
 
             return a;
         }

+ 6 - 6
src/Sharing.Province/Dtos/ProvinceResponse.cs

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
 
 namespace Sharing.Province.Dtos;
 
-public class ProvinceResponse : BaseReponse
+public class ProvinceResponse : Reponse
 {
     public bool Success => Code == 1;
 
@@ -16,24 +16,24 @@ public class ProvinceResponse : BaseReponse
     //public DateTime ReceiveTime { get; set; }
 }
 
-public class BaseReponse
+public class Reponse
 {
     public int Code { get; set; }
 
     public string Description { get; set; }
 
-    public static BaseReponse Success(string? description = "")
+    public static Reponse Success(string? description = "")
     {
-        return new BaseReponse
+        return new Reponse
         {
             Code = 1,
             Description = (description ?? "您已成功提交数据!")
         };
     }
 
-    public static BaseReponse Failed(string? description = "")
+    public static Reponse Failed(string? description = "")
     {
-        return new BaseReponse
+        return new Reponse
         {
             Description = (description ?? "接口调用失败!")
         };