修改接口部分传参
This commit is contained in:
1 parent
4c4b6df9ba
commit
c322de2dd7
11 files changed
+560
-198
No files matched your search
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WindowsFormsApp1.mod;
|
||||
using WindowsFormsApp1.mod.server;
|
||||
|
||||
namespace WindowsFormsApp1.server
|
||||
{
|
||||
public class ApiFormResult
|
||||
{
|
||||
private ApiFormResult(bool success, mesresult mesresult, bool isShow, string msg, plcdata data)
|
||||
{
|
||||
Success = success;
|
||||
Msg = msg;
|
||||
Data = data;
|
||||
Mesresult = mesresult;
|
||||
IsShow = isShow;
|
||||
}
|
||||
|
||||
public bool Success { get; set; }
|
||||
public string Msg { get; set; }
|
||||
public plcdata Data { get; set; }
|
||||
|
||||
public mesresult Mesresult { get; set; }
|
||||
|
||||
public bool IsShow { get; set; }
|
||||
|
||||
public static ApiFormResult Sucess(mesresult mesresult, bool isShow, string msg, plcdata data)
|
||||
{
|
||||
return new ApiFormResult(true, mesresult, isShow, msg, data);
|
||||
}
|
||||
|
||||
|
||||
public static ApiFormResult Error(mesresult mesresult, bool isShow, string msg, plcdata data)
|
||||
{
|
||||
return new ApiFormResult(false, mesresult, isShow, msg, data);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user