更改部分界面,更新ApiFormResult部分字段

This commit is contained in:
bnala committed 2025-02-19 13:39:14 +08:00
1 parent c322de2dd7
commit 16586d67aa
12 files changed
+936 -263

No files matched your search

+8 -5
View File
@@ -11,13 +11,14 @@ namespace WindowsFormsApp1.server
{
public class ApiFormResult
{
private ApiFormResult(bool success, mesresult mesresult, bool isShow, string msg, plcdata data)
private ApiFormResult(bool success, mesresult mesresult, bool isShow, string msg, plcdata data,DateTime requesttime)
{
Success = success;
Msg = msg;
Data = data;
Mesresult = mesresult;
IsShow = isShow;
Requesttime = requesttime;
}
public bool Success { get; set; }
@@ -28,15 +29,17 @@ namespace WindowsFormsApp1.server
public bool IsShow { get; set; }
public static ApiFormResult Sucess(mesresult mesresult, bool isShow, string msg, plcdata data)
public DateTime Requesttime { get; set; }
public static ApiFormResult Sucess(mesresult mesresult, bool isShow, string msg, plcdata data, DateTime requesttime)
{
return new ApiFormResult(true, mesresult, isShow, msg, data);
return new ApiFormResult(true, mesresult, isShow, msg, data, requesttime);
}
public static ApiFormResult Error(mesresult mesresult, bool isShow, string msg, plcdata data)
public static ApiFormResult Error(mesresult mesresult, bool isShow, string msg, plcdata data, DateTime requesttime)
{
return new ApiFormResult(false, mesresult, isShow, msg, data);
return new ApiFormResult(false, mesresult, isShow, msg, data,requesttime);
}
}