Info
Version: | 1.0.1 |
Author(s): | wyb |
Last Update: | Thursday, February 28, 2019 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/ZetaWebApi |
Install
Install-Package ZetaWebApi
dotnet add package ZetaWebApi
paket add ZetaWebApi
ZetaWebApi Download (Unzip the "nupkg" after downloading)
返回结果格式如下
{
"code": "ok",
"result":任何数据类型都可以,
"message": "",
"success": true
}
抛错code默认为sys_error,
可自定义异常code方法如下
Exception ex = new Exception("错误消息内容");
ex.Data["code"] = "wx_error";
throw ex;.