|
@@ -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 ?? "接口调用失败!")
|
|
|
};
|