46 changed files with 2021 additions and 0 deletions
@ -0,0 +1,198 @@ |
|||||||
|
using Microsoft.AspNetCore.Mvc; |
||||||
|
using System.Net.Http; |
||||||
|
using System.Runtime; |
||||||
|
using System.Runtime.Serialization; |
||||||
|
using test; |
||||||
|
|
||||||
|
namespace WebApplication1.Controllers |
||||||
|
{ |
||||||
|
[ApiController] |
||||||
|
[Route("[controller]/[action]")]
|
||||||
|
public class TwentySystemController : ControllerBase |
||||||
|
{ |
||||||
|
private readonly HttpClient httpClient; |
||||||
|
private string ip, port; |
||||||
|
|
||||||
|
public TwentySystemController(IHttpClientFactory httpClientFactory, IConfiguration configuration) |
||||||
|
{ |
||||||
|
ip = configuration.GetSection("Configs:SystemIp").Value; |
||||||
|
port = configuration.GetSection("Configs:Port").Value; |
||||||
|
httpClient = httpClientFactory.CreateClient(); |
||||||
|
httpClient.BaseAddress = new Uri($"http://{ip}:{port}"); |
||||||
|
httpClient.DefaultRequestHeaders.Add("Accept", "application/json"); |
||||||
|
httpClient.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample"); |
||||||
|
httpClient.DefaultRequestHeaders.ConnectionClose = true; |
||||||
|
} |
||||||
|
[HttpGet] |
||||||
|
public async Task<Result<JZJBXX>> GetJZXX(string dwbm, string bmsah) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
MDossier dossier = new MDossier(dwbm, $"{ip}:{port}"); |
||||||
|
var data = await dossier.GetJZXX(dwbm, bmsah); |
||||||
|
return new Result<JZJBXX>() |
||||||
|
{ |
||||||
|
IsSucceed = true, |
||||||
|
Message = "操作成功", |
||||||
|
result = data |
||||||
|
}; |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
return new Result<JZJBXX>() |
||||||
|
{ |
||||||
|
IsSucceed = false, |
||||||
|
Message = "操作失败" + ex.Message |
||||||
|
}; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[HttpGet] |
||||||
|
public async Task<Result<Paging<JZInfo>>> GetCaseInfo(string? casename, string? bmsah, string? dwbm, DateTime? starttime, DateTime? endtime, int page, int size) |
||||||
|
{ |
||||||
|
await Task.Delay(10); |
||||||
|
var param = new |
||||||
|
{ |
||||||
|
ksslrq = starttime?.ToString("yyyy-MM-dd") ?? DateTime.Now.AddDays(-100).ToString("yyyy-MM-dd"), |
||||||
|
jsslrq = endtime?.ToString("yyyy-MM-dd") ?? DateTime.Now.ToString("yyyy-MM-dd"), |
||||||
|
bmsah = bmsah, |
||||||
|
zzzt = "", |
||||||
|
ajlbbms = new string[] { "2801", "2802", "2803", "1602", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2009", "2010", "2011", "2012", "2013", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2029", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2039", "2040", "2041", "2042", "2043", "2044", "2048", "2049", "2050", "2051", "2052", "2053", "2054", "2055", "2056", "2058", "2059", "2062", "2077", "2078", "1603", "1604", "1608", "1611", "1614", "1619", "1621", "1622", "1625", "1626", "1630", "1631", "1632", "1633", "1634", "1635", "1636", "1637", "1638", "1650", "1801", "1802", "1803", "1805", "1806", "1807", "1808", "1809", "1810", "1812", "1813", "1901", "1902", "1903", "1904", "1905", "1906", "1907", "1908", "1909", "1910", "1911", "1912", "1913", "1914", "1915", "1916", "1917", "1918", "1919", "0701", "0702", "0703", "0704", "0705", "0706", "0707", "0708", "0709", "0710", "0711", "0712", "0713", "0714", "0715", "0716", "0717", "0718", "0719", "0720", "0721", "0722", "0723", "0724", "0725", "0726", "0727", "1701", "1702", "1703", "1704", "1705", "1706", "1708", "1709", "1710", "1711", "1712", "1713", " 1714", "1715", "1716", "1718", "1719", "1720", "1722", "1723", "1724", "1725", "1726", "1727", "1728", "1729", "1730", "1731", "1732", "1733", "1734", "1736", "1737", "1738", "1740", "1741", "1742", "1743", "1744", "1745", "1747", "1748", "1749", "1750", "1752", "1753", "1754", "1756", "1757", "1758", "1759", "1760", "1761", "1762", "1768", "1769", "1770", "1771", "1772", "1773", "1774", "1775", "1778", "1779", "1780", "1781", "1782", "1784", "1785", "1786", "1787", "1788", "1789", "1790", "1791", "1792", "2701", "2702", "2703", "2704", "2705", "2706", "2707", "2708", "2710", "2711", "2712", "2713", "2714", "2715", "2716", "2717", "2718", "2719", "2721", "2722", "2723", "2724", "2726", "2727", "2728", "2729", "2730", "2731", "2732", "2733", "2734", "2735", "2736", "2737", "0801", "0802", "0803", "0804", "0805", "0806", "0808", "0809", "0810", "0811", "0812", "0813", "0814", "0815", "0816", "0817", "0818", "0819", "0820", "0821", "0822", "0823", "0824", "0825", "0826", "0827", "0828", "1401", "1402", "1403", "1404", "1405", "1406", "1408", "1409", "1410", "1411", "1412", "1413", "1414", "1415", "1101", "1102", "1103", "1104", "1105", "1107", "1108", "1109", "1111", "1112", "1302", "1303", "1304", "1305", "2202", "2203", "2204", "2205", "2207", "2209", "2301", "2302", "2303", "2401", "2402", "2101", "2102", "2103", "2104", "2105", "2106", "2107", "2108", "2109", "2110", "2111", "2112", "2113", "2114", "2115", "2116", "2117", "2118", "2119", "2120", "2122", "2123", "2124", "2130", "2501", "2502", "2509", "2601", "2602", "2603", "2604", "0301", "3001", "3002" }, |
||||||
|
ajmc = casename, |
||||||
|
sfsy = "", |
||||||
|
sfbd = "", |
||||||
|
dwbms = new string[] |
||||||
|
{ |
||||||
|
dwbm |
||||||
|
}, |
||||||
|
page = page.ToString(), |
||||||
|
size = size.ToString() |
||||||
|
}; |
||||||
|
httpClient.DefaultRequestHeaders.Add("X-IDENTITY", "eyJkbGJtIjoi5rGk6Lev5bmzIiwicnlibSI6IjQxMDUwMzAwNzQiLCJkd2JtIjoiNDEwNTAzIiwiZHdtYyI6IuWMl+WFs+WMuumZoiIsInJ5bWMiOiLmsaTot6/lubMifQ=="); |
||||||
|
var request = await httpClient.PostAsJsonAsync("/dzjzzz-service/api/dzjzzz/dzjzzzYxJzjbxx/getDzzjzList", param); |
||||||
|
var data = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
||||||
|
var result = data.ConvertToAnonymousType(new |
||||||
|
{ |
||||||
|
code = default(string), |
||||||
|
success = default(bool), |
||||||
|
message = default(string), |
||||||
|
data = new |
||||||
|
{ |
||||||
|
pageNum = default(int), |
||||||
|
pageSize = default(int), |
||||||
|
total = default(int), |
||||||
|
pages = default(int), |
||||||
|
list = new[] |
||||||
|
{ |
||||||
|
default(JZInfo) |
||||||
|
} |
||||||
|
} |
||||||
|
}); |
||||||
|
if (result.success == true) |
||||||
|
{ |
||||||
|
if (result.data == null) |
||||||
|
{ |
||||||
|
return new Result<Paging<JZInfo>>() |
||||||
|
{ |
||||||
|
IsSucceed = true, |
||||||
|
Message = result.message ?? "查询成功" |
||||||
|
}; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
var res = new Result<Paging<JZInfo>>() |
||||||
|
{ |
||||||
|
IsSucceed = true, |
||||||
|
Message = "操作成功", |
||||||
|
result = new Paging<JZInfo>() |
||||||
|
{ |
||||||
|
pageNum = result?.data?.pageNum, |
||||||
|
pageSize = result?.data?.pageSize, |
||||||
|
total = result?.data?.total, |
||||||
|
pages = result?.data?.pages, |
||||||
|
List = result?.data?.list?.ToList() |
||||||
|
} |
||||||
|
}; |
||||||
|
return res; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
return new Result<Paging<JZInfo>>() |
||||||
|
{ |
||||||
|
IsSucceed = false, |
||||||
|
Message = result.message ?? "查询失败" |
||||||
|
}; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
public class Paging<T> |
||||||
|
{ |
||||||
|
public int? pageNum { get; set; } |
||||||
|
public int? pageSize { get; set; } |
||||||
|
public int? total { get; set; } |
||||||
|
public int? pages { get; set; } |
||||||
|
public IEnumerable<T>? List { get; set; } |
||||||
|
} |
||||||
|
public class Result |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 成功/失败 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public bool IsSucceed { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 消息 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string Message { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 消息 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public dynamic result { get; set; } |
||||||
|
} |
||||||
|
public class Result<T> : Result |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 扩展数据 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public new T result { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
public class JZInfo |
||||||
|
{ |
||||||
|
public string? jzbh { get; set; } |
||||||
|
public string? ajmc { get; set; } |
||||||
|
public string? bmsah { get; set; } |
||||||
|
public string? cbdwbm { get; set; } |
||||||
|
public string? rybm { get; set; } |
||||||
|
public string? rymc { get; set; } |
||||||
|
public int? cs { get; set; } |
||||||
|
public int? ys { get; set; } |
||||||
|
public DateTime? cjsj { get; set; } |
||||||
|
public DateTime? cjrq { get; set; } |
||||||
|
public string? zzr { get; set; } |
||||||
|
public string? zzrbm { get; set; } |
||||||
|
public string? zzzt { get; set; } |
||||||
|
public string? jzms { get; set; } |
||||||
|
public string? jzxh { get; set; } |
||||||
|
public string? nfbd { get; set; } |
||||||
|
public string? jzsd { get; set; } |
||||||
|
public string? ajlbbm { get; set; } |
||||||
|
public string? ajlbmc { get; set; } |
||||||
|
public DateTime? slrq { get; set; } |
||||||
|
public string? jzocrzt { get; set; } |
||||||
|
public string? id { get; set; } |
||||||
|
public string? yjzmc { get; set; } |
||||||
|
public string? sfck { get; set; } |
||||||
|
public string? sfkcz { get; set; } |
||||||
|
public string? qlzt { get; set; } |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,142 @@ |
|||||||
|
using Newtonsoft.Json; |
||||||
|
using System.Runtime.CompilerServices; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace WebApplication1 |
||||||
|
{ |
||||||
|
|
||||||
|
public static class ConvertorExtension |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// model=>json string |
||||||
|
/// </summary> |
||||||
|
/// <typeparam name="T"></typeparam> |
||||||
|
/// <param name="t"></param> |
||||||
|
/// <returns></returns> |
||||||
|
|
||||||
|
private readonly static JsonSerializerSettings settings = new JsonSerializerSettings() |
||||||
|
{ |
||||||
|
NullValueHandling = NullValueHandling.Ignore, |
||||||
|
ReferenceLoopHandling = ReferenceLoopHandling.Ignore |
||||||
|
}; |
||||||
|
public static string ConvertToJsonStr<T>(this T t) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
return JsonConvert.SerializeObject(t, Formatting.None, settings); |
||||||
|
|
||||||
|
} |
||||||
|
catch |
||||||
|
{ |
||||||
|
return default; |
||||||
|
} |
||||||
|
} |
||||||
|
public static T DeepCopy<T>(this T t) |
||||||
|
{ |
||||||
|
return t.ConvertToJsonStr().ConvertToModel<T>(); |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// json转为匿名对象 |
||||||
|
/// </summary> |
||||||
|
/// <typeparam name="T"></typeparam> |
||||||
|
/// <param name="json"></param> |
||||||
|
/// <param name="anonymousTypeObject"></param> |
||||||
|
/// <returns></returns> |
||||||
|
public static T ConvertToAnonymousType<T>(this object json, T anonymousTypeObject) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
return JsonConvert.DeserializeAnonymousType(json.ToString(), anonymousTypeObject); |
||||||
|
} |
||||||
|
catch |
||||||
|
{ |
||||||
|
return default; |
||||||
|
} |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// object 转匿名类 |
||||||
|
/// </summary> |
||||||
|
/// <typeparam name="T"></typeparam> |
||||||
|
/// <param name="anonymous"></param> |
||||||
|
/// <param name="anonymousType"></param> |
||||||
|
/// <returns></returns> |
||||||
|
public static T ConvertToAnonymous<T>(this object anonymous, T anonymousType) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
if (anonymous != null) |
||||||
|
{ |
||||||
|
return (T)anonymous; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
return default; |
||||||
|
} |
||||||
|
} |
||||||
|
catch |
||||||
|
{ |
||||||
|
return default; |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// json string=>mdoel |
||||||
|
/// </summary> |
||||||
|
/// <typeparam name="T"></typeparam> |
||||||
|
/// <param name="str"></param> |
||||||
|
/// <returns></returns> |
||||||
|
public static T ConvertToModel<T>(this string str, [CallerMemberName] string methodname = "") |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
return JsonConvert.DeserializeObject<T>(str); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
return default; |
||||||
|
} |
||||||
|
} |
||||||
|
public static string ConvertToBase64(this string str) |
||||||
|
{ |
||||||
|
return Convert.ToBase64String(Encoding.Default.GetBytes(str)); |
||||||
|
} |
||||||
|
public static string ConvertToGetParam(this object obj) |
||||||
|
{ |
||||||
|
StringBuilder strBui = new StringBuilder(); |
||||||
|
|
||||||
|
System.Reflection.PropertyInfo[] proArray = obj.GetType().GetProperties(); |
||||||
|
foreach (System.Reflection.PropertyInfo pro in proArray) |
||||||
|
{ |
||||||
|
if (strBui.Length < 1) |
||||||
|
{ |
||||||
|
strBui.Append("?"); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
strBui.Append("&"); |
||||||
|
} |
||||||
|
strBui.Append(string.Format("{0}={1}", pro.Name, pro.GetValue(obj, null))); |
||||||
|
} |
||||||
|
return strBui.ToString(); |
||||||
|
} |
||||||
|
// DateTime --> long |
||||||
|
public static long ConvertDateTimeToLong(DateTime dt) |
||||||
|
{ |
||||||
|
DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); |
||||||
|
TimeSpan toNow = dt.Subtract(dtStart); |
||||||
|
long timeStamp = toNow.Ticks; |
||||||
|
timeStamp = long.Parse(timeStamp.ToString().Substring(0, timeStamp.ToString().Length - 4)); |
||||||
|
return timeStamp; |
||||||
|
} |
||||||
|
// long --> DateTime |
||||||
|
public static DateTime ConvertLongToDateTime(long d) |
||||||
|
{ |
||||||
|
DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); |
||||||
|
long lTime = long.Parse(d + "0000"); |
||||||
|
TimeSpan toNow = new TimeSpan(lTime); |
||||||
|
DateTime dtResult = dtStart.Add(toNow); |
||||||
|
return dtResult; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
@ -0,0 +1,380 @@ |
|||||||
|
using Newtonsoft.Json; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Diagnostics; |
||||||
|
using System.IO; |
||||||
|
using System.Linq; |
||||||
|
using System.Net; |
||||||
|
using System.Net.Http.Headers; |
||||||
|
using System.Text; |
||||||
|
using System.Threading.Tasks; |
||||||
|
|
||||||
|
namespace test |
||||||
|
{ |
||||||
|
internal class MDossier |
||||||
|
{ |
||||||
|
private string TyywAddr |
||||||
|
{ |
||||||
|
get; |
||||||
|
set; |
||||||
|
} |
||||||
|
private string DWBM |
||||||
|
{ |
||||||
|
get; |
||||||
|
set; |
||||||
|
} |
||||||
|
|
||||||
|
public MDossier(string _dwbm, string _TyywAddr) |
||||||
|
{ |
||||||
|
DWBM = _dwbm; |
||||||
|
TyywAddr = _TyywAddr; |
||||||
|
} |
||||||
|
|
||||||
|
#region 获取卷宗信息操作 |
||||||
|
public async Task<JZJBXX> GetJZXX(string dwbm, string bmsah) |
||||||
|
{ |
||||||
|
JZJBXX jbxx = new JZJBXX(); |
||||||
|
#region POST |
||||||
|
string apiUrl = "http://" + TyywAddr + "/dzjz-service/api/dzjz/getDzjzInfo"; // 接口 |
||||||
|
//创建一个HTTP请求 |
||||||
|
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(apiUrl); |
||||||
|
//Post请求方式 |
||||||
|
request.Method = "POST"; |
||||||
|
//内容类型 |
||||||
|
request.ContentType = "application/json"; |
||||||
|
//设置参数,并进行URL编码 |
||||||
|
string paraUrlCoded = "{\"bmsah\":\"" + bmsah + "\",\"dwbm\":\"" + dwbm + "\"}"; |
||||||
|
byte[] payload; |
||||||
|
//将Json字符串转化为字节 |
||||||
|
payload = System.Text.Encoding.UTF8.GetBytes(paraUrlCoded); |
||||||
|
//设置请求的ContentLength |
||||||
|
request.ContentLength = payload.Length; |
||||||
|
//发送请求,获得请求流 |
||||||
|
Stream writer; |
||||||
|
try |
||||||
|
{ |
||||||
|
//获取用于写入请求数据的Stream对象 |
||||||
|
writer = request.GetRequestStream(); |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteInfoLog("接口 1 参数序列化失败:" + ex.Message); |
||||||
|
return jbxx; |
||||||
|
} |
||||||
|
//将请求参数写入流 |
||||||
|
writer.Write(payload, 0, payload.Length); |
||||||
|
writer.Close();//关闭请求流 |
||||||
|
|
||||||
|
HttpWebResponse response; |
||||||
|
try |
||||||
|
{ |
||||||
|
//获得响应流 |
||||||
|
response = (HttpWebResponse)request.GetResponse(); |
||||||
|
} |
||||||
|
catch (WebException ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteInfoLog("接口 1 请求异常:" + ex.Message); |
||||||
|
return jbxx; |
||||||
|
} |
||||||
|
|
||||||
|
if (response != null) |
||||||
|
{ |
||||||
|
Stream s = response.GetResponseStream(); |
||||||
|
StreamReader sRead = new StreamReader(s); |
||||||
|
string postContent = sRead.ReadToEnd(); |
||||||
|
sRead.Close(); |
||||||
|
s.Close(); |
||||||
|
try |
||||||
|
{ |
||||||
|
var jsonObj = JsonConvert.DeserializeObject<JBXXStruct>(postContent); |
||||||
|
if (jsonObj != null) |
||||||
|
{ |
||||||
|
if (jsonObj.jzjbxx != null) |
||||||
|
{ |
||||||
|
if (jsonObj.jzjbxx.Count > 0) |
||||||
|
{ |
||||||
|
jbxx = jsonObj.jzjbxx[0]; |
||||||
|
List<JZML> jzml = await GetJZML(bmsah); |
||||||
|
jbxx.jzml = jzml; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteErrorLog($"接口 1 失败原因:{ex.Message}"); |
||||||
|
} |
||||||
|
} |
||||||
|
return jbxx; |
||||||
|
#endregion |
||||||
|
} |
||||||
|
private async Task<List<JZML>> GetJZML(string bmsah) |
||||||
|
{ |
||||||
|
List<JZML> jzml = new List<JZML>(); |
||||||
|
#region POST |
||||||
|
string apiUrl = "http://" + TyywAddr + "/dzjzzz-service/api/dzjz/getDzjzMlWjInfo"; // 集中部署 |
||||||
|
//创建一个HTTP请求 |
||||||
|
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(apiUrl); |
||||||
|
//Post请求方式 |
||||||
|
request.Method = "POST"; |
||||||
|
//内容类型 |
||||||
|
request.ContentType = "application/json"; |
||||||
|
//设置参数,并进行URL编码 |
||||||
|
string paraUrlCoded = "{\"bmsah\":\"" + bmsah + "\"}"; |
||||||
|
byte[] payload; |
||||||
|
//将Json字符串转化为字节 |
||||||
|
payload = System.Text.Encoding.UTF8.GetBytes(paraUrlCoded); |
||||||
|
//设置请求的ContentLength |
||||||
|
request.ContentLength = payload.Length; |
||||||
|
//发送请求,获得请求流 |
||||||
|
Stream writer; |
||||||
|
try |
||||||
|
{ |
||||||
|
//获取用于写入请求数据的Stream对象 |
||||||
|
writer = request.GetRequestStream(); |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteInfoLog("接口 2 参数序列化失败:" + ex.Message); |
||||||
|
return jzml; |
||||||
|
} |
||||||
|
//将请求参数写入流 |
||||||
|
writer.Write(payload, 0, payload.Length); |
||||||
|
writer.Close();//关闭请求流 |
||||||
|
|
||||||
|
HttpWebResponse response; |
||||||
|
try |
||||||
|
{ |
||||||
|
//获得响应流 |
||||||
|
response = (HttpWebResponse)request.GetResponse(); |
||||||
|
} |
||||||
|
catch (WebException ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteInfoLog("接口 2 请求异常:" + ex.Message); |
||||||
|
return jzml; |
||||||
|
} |
||||||
|
|
||||||
|
if (response != null) |
||||||
|
{ |
||||||
|
Stream s = response.GetResponseStream(); |
||||||
|
StreamReader sRead = new StreamReader(s); |
||||||
|
string postContent = sRead.ReadToEnd(); |
||||||
|
sRead.Close(); |
||||||
|
s.Close(); |
||||||
|
try |
||||||
|
{ |
||||||
|
|
||||||
|
var jsonObj = JsonConvert.DeserializeObject<JZMLStruct>(postContent); |
||||||
|
if (jsonObj != null) |
||||||
|
{ |
||||||
|
jzml = jsonObj.data.jzml; |
||||||
|
if (jsonObj.data != null) |
||||||
|
{ |
||||||
|
LogHelpe.WriteInfoLog("目录数据:" + jsonObj.data.jzml.Count); |
||||||
|
foreach (var item in jzml) |
||||||
|
{ |
||||||
|
// 文件接口的参数 |
||||||
|
var mlbh = item.mlbh; |
||||||
|
var jzbh = item.jzbh; |
||||||
|
//获取卷或目录下的所有文件列表 |
||||||
|
List<JZWJItem> wjlist = await GetJZMLWJ(mlbh, jzbh); |
||||||
|
if (jsonObj.data.jzmlwj != null) |
||||||
|
{ |
||||||
|
for (int i = 0; i < wjlist.Count; i++) |
||||||
|
{ |
||||||
|
var wj = jsonObj.data.jzmlwj.Where(w => w.wjxh.Equals(wjlist[i].wjxh)).FirstOrDefault(); |
||||||
|
if (wj != null) |
||||||
|
{ |
||||||
|
wjlist[i].bsbh = jsonObj.data.jzmlwj[i].bsbh; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
item.jzwj = wjlist; |
||||||
|
} |
||||||
|
return jzml; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteErrorLog($"接口 2 失败原因:{ex.Message}"); |
||||||
|
return jzml; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
return jzml; |
||||||
|
#endregion |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 获取卷或目录下的所有文件列表 |
||||||
|
/// </summary> |
||||||
|
private async Task<List<JZWJItem>> GetJZMLWJ(string mlbh, string jzbh) |
||||||
|
{ |
||||||
|
string apiUrl = "http://" + TyywAddr + "/dzjzzz-service/api/dzjzzz/dzjzzzYxJzmlwj/getJzmlwjInfo"; // 集中部署 |
||||||
|
LogHelpe.WriteInfoLog($"请求地址:{apiUrl}"); //创建一个HTTP请求 |
||||||
|
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(apiUrl); |
||||||
|
//Post请求方式 |
||||||
|
request.Method = "POST"; |
||||||
|
//内容类型 |
||||||
|
request.ContentType = "application/json"; |
||||||
|
//设置参数,并进行URL编码 |
||||||
|
string paraUrlCoded = "{\"mlbh\":\"" + mlbh + "\",\"jzbh\": \"" + jzbh + "\"}"; |
||||||
|
byte[] payload; |
||||||
|
//将Json字符串转化为字节 |
||||||
|
payload = System.Text.Encoding.UTF8.GetBytes(paraUrlCoded); |
||||||
|
//设置请求的ContentLength |
||||||
|
request.ContentLength = payload.Length; |
||||||
|
//发送请求,获得请求流 |
||||||
|
Stream writer; |
||||||
|
try |
||||||
|
{ |
||||||
|
//获取用于写入请求数据的Stream对象 |
||||||
|
writer = request.GetRequestStream(); |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteInfoLog("接口 3 参数序列化失败:" + ex.Message); |
||||||
|
return new List<JZWJItem>(); |
||||||
|
} |
||||||
|
//将请求参数写入流 |
||||||
|
writer.Write(payload, 0, payload.Length); |
||||||
|
writer.Close();//关闭请求流 |
||||||
|
HttpWebResponse response; |
||||||
|
try |
||||||
|
{ |
||||||
|
//获得响应流 |
||||||
|
response = (HttpWebResponse)request.GetResponse(); |
||||||
|
} |
||||||
|
catch (WebException ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteInfoLog("接口 3 请求异常:" + ex.Message); |
||||||
|
return new List<JZWJItem>(); |
||||||
|
} |
||||||
|
|
||||||
|
if (response != null) |
||||||
|
{ |
||||||
|
Stream s = response.GetResponseStream(); |
||||||
|
StreamReader sRead = new StreamReader(s); |
||||||
|
string postContent = sRead.ReadToEnd(); |
||||||
|
s.Close(); |
||||||
|
sRead.Close(); |
||||||
|
|
||||||
|
try |
||||||
|
{ |
||||||
|
var jsonObj = JsonConvert.DeserializeObject<JZWJStruct>(postContent); |
||||||
|
if (jsonObj != null) |
||||||
|
{ |
||||||
|
if (jsonObj.code == "0" && jsonObj.success == "true") |
||||||
|
{ |
||||||
|
if (jsonObj.data != null && jsonObj.data.Count > 0) |
||||||
|
{ |
||||||
|
List<JZWJItem> mLWJItems = jsonObj.data; |
||||||
|
return mLWJItems; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteErrorLog($"接口 3 失败原因:{ex.Message}"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return new List<JZWJItem>(); |
||||||
|
} |
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 下载文件 |
||||||
|
//任务数据队列 |
||||||
|
private List<string> lst_bmsah = new List<string>(); |
||||||
|
private bool taskStatus = true; |
||||||
|
private int taskCount = 0; |
||||||
|
public async void DownJZFiles(JZJBXX jbxx, string dirPath, bool cacheFile = true) |
||||||
|
{ |
||||||
|
if (jbxx != null) |
||||||
|
{ |
||||||
|
if (jbxx.jzml != null && jbxx.jzml.Count > 0) |
||||||
|
{ |
||||||
|
for (int m = 0; m < jbxx.jzml.Count; m++) |
||||||
|
{ |
||||||
|
if (jbxx.jzml[m].jzwj != null && jbxx.jzml[m].jzwj.Count > 0) |
||||||
|
{ |
||||||
|
for (int j = 0; j < jbxx.jzml[m].jzwj.Count; j++) |
||||||
|
{ |
||||||
|
if (!Directory.Exists(dirPath)) |
||||||
|
{ |
||||||
|
Directory.CreateDirectory(dirPath); |
||||||
|
} |
||||||
|
if (Directory.Exists(dirPath)) |
||||||
|
{ |
||||||
|
string filePath = Path.Combine(dirPath, Path.GetFileName(jbxx.jzml[m].jzwj[j].wjxh + ".jpg")); |
||||||
|
byte[] jpgBytes = DownJZWJFile(jbxx.jzml[m].jzwj[j].jpgwjlj, jbxx.jzml[m].jzwj[j].wjxsmc, jbxx.jzml[m].mlxsmc, filePath, cacheFile); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
//下载图片 |
||||||
|
private byte[] DownJZWJFile(string url, string wjxsmc, string mlxsmc, string filePath, bool cacheFile = true) |
||||||
|
{ |
||||||
|
byte[] jpgByte = new byte[] { }; |
||||||
|
|
||||||
|
try |
||||||
|
{ |
||||||
|
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); |
||||||
|
//发送请求并获取相应回应数据 |
||||||
|
HttpWebResponse response = request.GetResponse() as HttpWebResponse; |
||||||
|
|
||||||
|
Stream responseStream = response.GetResponseStream(); |
||||||
|
try |
||||||
|
{ |
||||||
|
#region 正式 |
||||||
|
MemoryStream memory = new MemoryStream(); |
||||||
|
byte[] bArr = new byte[1024]; |
||||||
|
int size = responseStream.Read(bArr, 0, (int)bArr.Length); |
||||||
|
while (size > 0) |
||||||
|
{ |
||||||
|
memory.Write(bArr, 0, size); |
||||||
|
size = responseStream.Read(bArr, 0, (int)bArr.Length); |
||||||
|
} |
||||||
|
|
||||||
|
if (cacheFile) |
||||||
|
{ |
||||||
|
//文件落地(本地存放) |
||||||
|
using (var fileStream = File.Create(filePath)) |
||||||
|
{ |
||||||
|
memory.Seek(0, SeekOrigin.Begin); |
||||||
|
memory.CopyTo(fileStream); |
||||||
|
} |
||||||
|
} |
||||||
|
jpgByte = memory.ToArray(); |
||||||
|
// 关闭请求流 |
||||||
|
memory.Close(); |
||||||
|
|
||||||
|
responseStream.Close(); |
||||||
|
|
||||||
|
#endregion |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteErrorLog(string.Format("文件下载失败,文件名:{0}/{1},{2}", wjxsmc, mlxsmc, ex.Message)); |
||||||
|
} |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
LogHelpe.WriteErrorLog($"GetBytesFromUrl失败原因:{ex.Message}"); |
||||||
|
} |
||||||
|
return jpgByte; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
|
} |
@ -0,0 +1,261 @@ |
|||||||
|
using Newtonsoft.Json; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Threading.Tasks; |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 目录结构 |
||||||
|
/// </summary> |
||||||
|
public class JZML |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string taskid { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string jzbh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string mlbh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string fmlbh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 新增卷 |
||||||
|
/// </summary> |
||||||
|
public string mlxsmc { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string mlxx { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string mlsxh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string mllx { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string dwbm { get; set; } |
||||||
|
public List<JZWJItem> jzwj { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
public class JZMLData |
||||||
|
{ |
||||||
|
public List<JZML> jzml { get; set; } |
||||||
|
|
||||||
|
//public List<JzmlwjItem> jzwj { get; set; } |
||||||
|
public List<JzmlwjItem> jzmlwj { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public class JZMLStruct |
||||||
|
{ |
||||||
|
public string code { get; set; } |
||||||
|
public string success { get; set; } |
||||||
|
// 获取电子卷件信息成功 |
||||||
|
public string message { get; set; } |
||||||
|
public JZMLData data { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public class JzmlwjItem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string wjxh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string mlbh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string wjym { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string wjlx { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string wjscbz { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public int wjsxh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 目录 |
||||||
|
/// </summary> |
||||||
|
public string wjxsmc { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string jzbh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string wjlj { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string wjmc { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string wjhz { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string bsbh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string wjksy { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string wjjsy { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public class JZWJItem |
||||||
|
{ |
||||||
|
public string wjxh { get; set; } |
||||||
|
public string mlbh { get; set; } |
||||||
|
public string ywjlj { get; set; } |
||||||
|
public string sltwjlj { get; set; } |
||||||
|
public string pdfwjlj { get; set; } |
||||||
|
public string jpgwjlj { get; set; } |
||||||
|
public string wjym { get; set; } |
||||||
|
public string wjlx { get; set; } |
||||||
|
public string wjscbz { get; set; } |
||||||
|
public int wjsxh { get; set; } |
||||||
|
public string wjxsmc { get; set; } |
||||||
|
public string jzbh { get; set; } |
||||||
|
public string wjocrsbzt { get; set; } |
||||||
|
public string cjsj { get; set; } |
||||||
|
public string time { get; set; } |
||||||
|
public string taskid { get; set; } |
||||||
|
public string wjbs { get; set; } |
||||||
|
public string bsbh { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
public class JZWJStruct |
||||||
|
{ |
||||||
|
public string code { get; set; } |
||||||
|
public string success { get; set; } |
||||||
|
public string message { get; set; } |
||||||
|
public List<JZWJItem> data { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class JZJBXX |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 部门受案号 |
||||||
|
/// </summary> |
||||||
|
public string bmsah { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 卷宗编号 |
||||||
|
/// </summary> |
||||||
|
public string jzbh { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位编码 |
||||||
|
/// </summary> |
||||||
|
public string dwbm { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// (简案)王奇涉嫌危险驾驶案 |
||||||
|
/// </summary> |
||||||
|
public string jzmc { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 汤路平 |
||||||
|
/// </summary> |
||||||
|
public string jzzzr { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 案件类别编码 |
||||||
|
/// </summary> |
||||||
|
public string ajlbbm { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 案件类别名称 |
||||||
|
/// </summary> |
||||||
|
public string ajlbmc { get; set; } |
||||||
|
|
||||||
|
public List<JZML> jzml { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public class JBXXStruct |
||||||
|
{ |
||||||
|
public List<JZJBXX> jzjbxx { get; set; } |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public class ApiResponse |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 返回代码 200:成功 300:系统错误 400:自定义错误 500:ORC识别错误 |
||||||
|
/// </summary> |
||||||
|
[JsonProperty(PropertyName = "code")] |
||||||
|
public int Code { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 错误信息 |
||||||
|
/// </summary> |
||||||
|
[JsonProperty(PropertyName = "Message")] |
||||||
|
public string Message { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 结果 |
||||||
|
/// </summary> |
||||||
|
[JsonProperty(PropertyName = "data")] |
||||||
|
public object Data { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
public class ImagesRoot |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public ImagesData Data { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public int Code { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// PDF转图片成功 |
||||||
|
/// </summary> |
||||||
|
public string Message { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
public class ImagesData |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public int code { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public List<List<string>> data { get; set; } |
||||||
|
public List<string> file_base64 { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// |
||||||
|
/// </summary> |
||||||
|
public string errMsg { get; set; } |
||||||
|
} |
@ -0,0 +1,76 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Configuration; |
||||||
|
using System.IO; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Threading.Tasks; |
||||||
|
|
||||||
|
namespace test |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 自定义日志 |
||||||
|
/// </summary> |
||||||
|
public class LogHelpe |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 信息日志 |
||||||
|
/// </summary> |
||||||
|
/// <param name="str"></param> |
||||||
|
public static void WriteInfoLog(string str, string dirName = @"logs") |
||||||
|
{ |
||||||
|
//return; |
||||||
|
try |
||||||
|
{ |
||||||
|
var status = 1;//int.Parse(ConfigurationManager.AppSettings["LogStatus"]); |
||||||
|
if (status == 0) // 0不输出日志,1输出日志 |
||||||
|
{ |
||||||
|
return; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
if (string.IsNullOrEmpty(str)) return; |
||||||
|
|
||||||
|
var baseDir = AppDomain.CurrentDomain.BaseDirectory + dirName; |
||||||
|
if (!Directory.Exists(baseDir)) |
||||||
|
{ |
||||||
|
Directory.CreateDirectory(baseDir); |
||||||
|
} |
||||||
|
string filePath = Path.Combine(baseDir, DateTime.Now.ToString("yyyy-MM-dd") + "_infolog.txt"); |
||||||
|
using (StreamWriter sw = File.AppendText(filePath)) |
||||||
|
{ |
||||||
|
sw.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff ") + "[" + str + "]" + "\r\n"); |
||||||
|
sw.Flush(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
catch { } |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 错误日志 |
||||||
|
/// </summary> |
||||||
|
/// <param name="str"></param> |
||||||
|
public static void WriteErrorLog(string str, string dirName = @"logs") |
||||||
|
{ |
||||||
|
//return; |
||||||
|
try |
||||||
|
{ |
||||||
|
if (string.IsNullOrEmpty(str)) return; |
||||||
|
|
||||||
|
var baseDir = AppDomain.CurrentDomain.BaseDirectory + dirName; |
||||||
|
if (!Directory.Exists(baseDir)) |
||||||
|
{ |
||||||
|
Directory.CreateDirectory(baseDir); |
||||||
|
} |
||||||
|
string filePath = Path.Combine(baseDir, DateTime.Now.ToString("yyyy-MM-dd") + "_errorlog.txt"); |
||||||
|
using (StreamWriter sw = File.AppendText(filePath)) |
||||||
|
{ |
||||||
|
sw.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff ") + "[" + str + "]" + "\r\n"); |
||||||
|
sw.Flush(); |
||||||
|
} |
||||||
|
} |
||||||
|
catch { } |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,26 @@ |
|||||||
|
Console.Title = "2.0 System Proxy Client"; |
||||||
|
var builder = WebApplication.CreateBuilder(args); |
||||||
|
|
||||||
|
// Add services to the container. |
||||||
|
|
||||||
|
builder.Services.AddControllers(); |
||||||
|
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle |
||||||
|
builder.Services.AddEndpointsApiExplorer(); |
||||||
|
builder.Services.AddSwaggerGen(); |
||||||
|
builder.Services.AddHttpClient(); |
||||||
|
|
||||||
|
var app = builder.Build(); |
||||||
|
|
||||||
|
// Configure the HTTP request pipeline. |
||||||
|
if (app.Environment.IsDevelopment()) |
||||||
|
{ |
||||||
|
app.UseSwagger(); |
||||||
|
app.UseSwaggerUI(); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
app.UseAuthorization(); |
||||||
|
|
||||||
|
app.MapControllers(); |
||||||
|
|
||||||
|
app.Run(); |
@ -0,0 +1,31 @@ |
|||||||
|
{ |
||||||
|
"$schema": "https://json.schemastore.org/launchsettings.json", |
||||||
|
"iisSettings": { |
||||||
|
"windowsAuthentication": false, |
||||||
|
"anonymousAuthentication": true, |
||||||
|
"iisExpress": { |
||||||
|
"applicationUrl": "http://localhost:34369", |
||||||
|
"sslPort": 44333 |
||||||
|
} |
||||||
|
}, |
||||||
|
"profiles": { |
||||||
|
"WebApplication1": { |
||||||
|
"commandName": "Project", |
||||||
|
"dotnetRunMessages": true, |
||||||
|
"launchBrowser": true, |
||||||
|
"launchUrl": "swagger", |
||||||
|
"applicationUrl": "https://localhost:7156;http://localhost:5194", |
||||||
|
"environmentVariables": { |
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development" |
||||||
|
} |
||||||
|
}, |
||||||
|
"IIS Express": { |
||||||
|
"commandName": "IISExpress", |
||||||
|
"launchBrowser": true, |
||||||
|
"launchUrl": "swagger", |
||||||
|
"environmentVariables": { |
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
namespace WebApplication1 |
||||||
|
{ |
||||||
|
public class WeatherForecast |
||||||
|
{ |
||||||
|
public DateTime Date { get; set; } |
||||||
|
|
||||||
|
public int TemperatureC { get; set; } |
||||||
|
|
||||||
|
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); |
||||||
|
|
||||||
|
public string? Summary { get; set; } |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web"> |
||||||
|
|
||||||
|
<PropertyGroup> |
||||||
|
<TargetFramework>net6.0</TargetFramework> |
||||||
|
<Nullable>enable</Nullable> |
||||||
|
<ImplicitUsings>enable</ImplicitUsings> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> |
||||||
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.0.0" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
</Project> |
@ -0,0 +1,9 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
||||||
|
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup> |
||||||
|
<ActiveDebugProfile>WebApplication1</ActiveDebugProfile> |
||||||
|
</PropertyGroup> |
||||||
|
</Project> |
@ -0,0 +1,25 @@ |
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00 |
||||||
|
# Visual Studio Version 17 |
||||||
|
VisualStudioVersion = 17.6.33829.357 |
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1 |
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApplication1", "WebApplication1.csproj", "{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}" |
||||||
|
EndProject |
||||||
|
Global |
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||||
|
Debug|Any CPU = Debug|Any CPU |
||||||
|
Release|Any CPU = Release|Any CPU |
||||||
|
EndGlobalSection |
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||||
|
{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||||
|
{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||||
|
{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||||
|
{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}.Release|Any CPU.Build.0 = Release|Any CPU |
||||||
|
EndGlobalSection |
||||||
|
GlobalSection(SolutionProperties) = preSolution |
||||||
|
HideSolutionNode = FALSE |
||||||
|
EndGlobalSection |
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution |
||||||
|
SolutionGuid = {0B59E350-8D7E-441E-8F31-D555F1C290E1} |
||||||
|
EndGlobalSection |
||||||
|
EndGlobal |
@ -0,0 +1,8 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
"AllowedHosts": "*", |
||||||
|
"Configs": { |
||||||
|
"SystemIp": "143.120.5.25", |
||||||
|
"Port": "8080" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,131 @@ |
|||||||
|
{ |
||||||
|
"runtimeTarget": { |
||||||
|
"name": ".NETCoreApp,Version=v6.0", |
||||||
|
"signature": "" |
||||||
|
}, |
||||||
|
"compilationOptions": {}, |
||||||
|
"targets": { |
||||||
|
".NETCoreApp,Version=v6.0": { |
||||||
|
"WebApplication1/1.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Newtonsoft.Json": "13.0.3", |
||||||
|
"Swashbuckle.AspNetCore": "6.0.0" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"WebApplication1.dll": {} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"runtime": { |
||||||
|
"lib/netstandard2.0/Microsoft.OpenApi.dll": { |
||||||
|
"assemblyVersion": "1.2.3.0", |
||||||
|
"fileVersion": "1.2.3.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"runtime": { |
||||||
|
"lib/net6.0/Newtonsoft.Json.dll": { |
||||||
|
"assemblyVersion": "13.0.0.0", |
||||||
|
"fileVersion": "13.0.3.27908" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.Extensions.ApiDescription.Server": "3.0.0", |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI": "6.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.OpenApi": "1.2.3" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"libraries": { |
||||||
|
"WebApplication1/1.0.0": { |
||||||
|
"type": "project", |
||||||
|
"serviceable": false, |
||||||
|
"sha512": "" |
||||||
|
}, |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==", |
||||||
|
"path": "microsoft.extensions.apidescription.server/3.0.0", |
||||||
|
"hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==", |
||||||
|
"path": "microsoft.openapi/1.2.3", |
||||||
|
"hashPath": "microsoft.openapi.1.2.3.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==", |
||||||
|
"path": "newtonsoft.json/13.0.3", |
||||||
|
"hashPath": "newtonsoft.json.13.0.3.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-VxukQYrUrxNUWQocOxmxua/4fZOPBdGCLSaoZYRNthZae0UXB+fzjTBTlj24fZEQrP+QTnsRwSygN9jNBqm/hg==", |
||||||
|
"path": "swashbuckle.aspnetcore/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-onkGK5eDFmyNy605E5ZaT5oXEGsQJz2UEKsUOqYCZRBC2Fi6MbByUl+qznyl3pZ9/4nTvukUjt9+v28qvJPk/Q==", |
||||||
|
"path": "swashbuckle.aspnetcore.swagger/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swagger.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-RXY21STD/yo4Uzy1L5GoRrEQQWoOosw0QBYo572VwcjePmpV1yFFHsTeThlMNBWKoTt6xadIdSjZj0FmDFYL2A==", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggergen/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swaggergen.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-VusRaCFt2As3SXBJmUOGA40IGr6ao+vsvDi7jbCS4AFx69kUUm8zxIHeJVqGov3w4lQowVxv8gmonRXDRh1FvQ==", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggerui/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swaggerui.6.0.0.nupkg.sha512" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,19 @@ |
|||||||
|
{ |
||||||
|
"runtimeOptions": { |
||||||
|
"tfm": "net6.0", |
||||||
|
"frameworks": [ |
||||||
|
{ |
||||||
|
"name": "Microsoft.NETCore.App", |
||||||
|
"version": "6.0.0" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "Microsoft.AspNetCore.App", |
||||||
|
"version": "6.0.0" |
||||||
|
} |
||||||
|
], |
||||||
|
"configProperties": { |
||||||
|
"System.GC.Server": true, |
||||||
|
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,8 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
"AllowedHosts": "*", |
||||||
|
"Configs": { |
||||||
|
"SystemIp": "143.120.5.25", |
||||||
|
"Port": "8080" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,4 @@ |
|||||||
|
// <autogenerated /> |
||||||
|
using System; |
||||||
|
using System.Reflection; |
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] |
@ -0,0 +1,23 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码由工具生成。 |
||||||
|
// 运行时版本:4.0.30319.42000 |
||||||
|
// |
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果 |
||||||
|
// 重新生成代码,这些更改将会丢失。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Reflection; |
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("WebApplication1")] |
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] |
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] |
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] |
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("WebApplication1")] |
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("WebApplication1")] |
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] |
||||||
|
|
||||||
|
// 由 MSBuild WriteCodeFragment 类生成。 |
||||||
|
|
@ -0,0 +1 @@ |
|||||||
|
dee9a2aee02504fa7cdc7ec740942fa35fde151a |
@ -0,0 +1,17 @@ |
|||||||
|
is_global = true |
||||||
|
build_property.TargetFramework = net6.0 |
||||||
|
build_property.TargetPlatformMinVersion = |
||||||
|
build_property.UsingMicrosoftNETSdkWeb = true |
||||||
|
build_property.ProjectTypeGuids = |
||||||
|
build_property.InvariantGlobalization = |
||||||
|
build_property.PlatformNeutralAssembly = |
||||||
|
build_property.EnforceExtendedAnalyzerRules = |
||||||
|
build_property._SupportedPlatformList = Linux,macOS,Windows |
||||||
|
build_property.RootNamespace = WebApplication1 |
||||||
|
build_property.RootNamespace = WebApplication1 |
||||||
|
build_property.ProjectDir = C:\Users\callm\source\repos\24Hour.Service\WebApplication1\ |
||||||
|
build_property.RazorLangVersion = 6.0 |
||||||
|
build_property.SupportLocalizedComponentNames = |
||||||
|
build_property.GenerateRazorMetadataSourceChecksumAttributes = |
||||||
|
build_property.MSBuildProjectDirectory = C:\Users\callm\source\repos\24Hour.Service\WebApplication1 |
||||||
|
build_property._RazorSourceGeneratorDebug = |
@ -0,0 +1,17 @@ |
|||||||
|
// <auto-generated/> |
||||||
|
global using global::Microsoft.AspNetCore.Builder; |
||||||
|
global using global::Microsoft.AspNetCore.Hosting; |
||||||
|
global using global::Microsoft.AspNetCore.Http; |
||||||
|
global using global::Microsoft.AspNetCore.Routing; |
||||||
|
global using global::Microsoft.Extensions.Configuration; |
||||||
|
global using global::Microsoft.Extensions.DependencyInjection; |
||||||
|
global using global::Microsoft.Extensions.Hosting; |
||||||
|
global using global::Microsoft.Extensions.Logging; |
||||||
|
global using global::System; |
||||||
|
global using global::System.Collections.Generic; |
||||||
|
global using global::System.IO; |
||||||
|
global using global::System.Linq; |
||||||
|
global using global::System.Net.Http; |
||||||
|
global using global::System.Net.Http.Json; |
||||||
|
global using global::System.Threading; |
||||||
|
global using global::System.Threading.Tasks; |
@ -0,0 +1,17 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码由工具生成。 |
||||||
|
// 运行时版本:4.0.30319.42000 |
||||||
|
// |
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果 |
||||||
|
// 重新生成代码,这些更改将会丢失。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Reflection; |
||||||
|
|
||||||
|
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")] |
||||||
|
|
||||||
|
// 由 MSBuild WriteCodeFragment 类生成。 |
||||||
|
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@ |
|||||||
|
ac56ad9b6183bc8b59750f58f05f67fc92de8fa8 |
@ -0,0 +1 @@ |
|||||||
|
610863d42c67d516702e9bf4f1e2639f75e23658 |
@ -0,0 +1,11 @@ |
|||||||
|
{ |
||||||
|
"Version": 1, |
||||||
|
"Hash": "ozPU8KMwOlbQHpcE5qZTZ7CirEa+BWCC4ogaz+QJEsE=", |
||||||
|
"Source": "WebApplication1", |
||||||
|
"BasePath": "_content/WebApplication1", |
||||||
|
"Mode": "Default", |
||||||
|
"ManifestType": "Build", |
||||||
|
"ReferencedProjectsConfiguration": [], |
||||||
|
"DiscoveryPatterns": [], |
||||||
|
"Assets": [] |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
<Project> |
||||||
|
<Import Project="Microsoft.AspNetCore.StaticWebAssets.props" /> |
||||||
|
</Project> |
@ -0,0 +1,3 @@ |
|||||||
|
<Project> |
||||||
|
<Import Project="..\build\WebApplication1.props" /> |
||||||
|
</Project> |
@ -0,0 +1,3 @@ |
|||||||
|
<Project> |
||||||
|
<Import Project="..\buildMultiTargeting\WebApplication1.props" /> |
||||||
|
</Project> |
@ -0,0 +1,4 @@ |
|||||||
|
// <autogenerated /> |
||||||
|
using System; |
||||||
|
using System.Reflection; |
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] |
@ -0,0 +1,23 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码由工具生成。 |
||||||
|
// 运行时版本:4.0.30319.42000 |
||||||
|
// |
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果 |
||||||
|
// 重新生成代码,这些更改将会丢失。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Reflection; |
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("WebApplication1")] |
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] |
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] |
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] |
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("WebApplication1")] |
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("WebApplication1")] |
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] |
||||||
|
|
||||||
|
// 由 MSBuild WriteCodeFragment 类生成。 |
||||||
|
|
@ -0,0 +1 @@ |
|||||||
|
e5ea81544c71ccdf664c478fb6e2942e864600b3 |
@ -0,0 +1,17 @@ |
|||||||
|
is_global = true |
||||||
|
build_property.TargetFramework = net6.0 |
||||||
|
build_property.TargetPlatformMinVersion = |
||||||
|
build_property.UsingMicrosoftNETSdkWeb = true |
||||||
|
build_property.ProjectTypeGuids = |
||||||
|
build_property.InvariantGlobalization = |
||||||
|
build_property.PlatformNeutralAssembly = |
||||||
|
build_property.EnforceExtendedAnalyzerRules = |
||||||
|
build_property._SupportedPlatformList = Linux,macOS,Windows |
||||||
|
build_property.RootNamespace = WebApplication1 |
||||||
|
build_property.RootNamespace = WebApplication1 |
||||||
|
build_property.ProjectDir = C:\Users\callm\source\repos\24Hour.Service\WebApplication1\ |
||||||
|
build_property.RazorLangVersion = 6.0 |
||||||
|
build_property.SupportLocalizedComponentNames = |
||||||
|
build_property.GenerateRazorMetadataSourceChecksumAttributes = |
||||||
|
build_property.MSBuildProjectDirectory = C:\Users\callm\source\repos\24Hour.Service\WebApplication1 |
||||||
|
build_property._RazorSourceGeneratorDebug = |
@ -0,0 +1,17 @@ |
|||||||
|
// <auto-generated/> |
||||||
|
global using global::Microsoft.AspNetCore.Builder; |
||||||
|
global using global::Microsoft.AspNetCore.Hosting; |
||||||
|
global using global::Microsoft.AspNetCore.Http; |
||||||
|
global using global::Microsoft.AspNetCore.Routing; |
||||||
|
global using global::Microsoft.Extensions.Configuration; |
||||||
|
global using global::Microsoft.Extensions.DependencyInjection; |
||||||
|
global using global::Microsoft.Extensions.Hosting; |
||||||
|
global using global::Microsoft.Extensions.Logging; |
||||||
|
global using global::System; |
||||||
|
global using global::System.Collections.Generic; |
||||||
|
global using global::System.IO; |
||||||
|
global using global::System.Linq; |
||||||
|
global using global::System.Net.Http; |
||||||
|
global using global::System.Net.Http.Json; |
||||||
|
global using global::System.Threading; |
||||||
|
global using global::System.Threading.Tasks; |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,87 @@ |
|||||||
|
{ |
||||||
|
"format": 1, |
||||||
|
"restore": { |
||||||
|
"C:\\Users\\callm\\source\\repos\\24Hour.Service\\WebApplication1\\WebApplication1.csproj": {} |
||||||
|
}, |
||||||
|
"projects": { |
||||||
|
"C:\\Users\\callm\\source\\repos\\24Hour.Service\\WebApplication1\\WebApplication1.csproj": { |
||||||
|
"version": "1.0.0", |
||||||
|
"restore": { |
||||||
|
"projectUniqueName": "C:\\Users\\callm\\source\\repos\\24Hour.Service\\WebApplication1\\WebApplication1.csproj", |
||||||
|
"projectName": "WebApplication1", |
||||||
|
"projectPath": "C:\\Users\\callm\\source\\repos\\24Hour.Service\\WebApplication1\\WebApplication1.csproj", |
||||||
|
"packagesPath": "C:\\Users\\callm\\.nuget\\packages\\", |
||||||
|
"outputPath": "C:\\Users\\callm\\source\\repos\\24Hour.Service\\WebApplication1\\obj\\", |
||||||
|
"projectStyle": "PackageReference", |
||||||
|
"fallbackFolders": [ |
||||||
|
"C:\\Program Files (x86)\\DevExpress 21.1\\Components\\Offline Packages", |
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages", |
||||||
|
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\" |
||||||
|
], |
||||||
|
"configFilePaths": [ |
||||||
|
"C:\\Users\\callm\\AppData\\Roaming\\NuGet\\NuGet.Config", |
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 21.1.config", |
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", |
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config", |
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config" |
||||||
|
], |
||||||
|
"originalTargetFrameworks": [ |
||||||
|
"net6.0" |
||||||
|
], |
||||||
|
"sources": { |
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, |
||||||
|
"C:\\Program Files\\dotnet\\library-packs": {}, |
||||||
|
"C:\\Program Files\\dotnet\\sdk\\7.0.306\\Sdks\\Microsoft.NET.Sdk.Web\\library-packs": {}, |
||||||
|
"http://47.108.27.176:14520/v3/index.json": {}, |
||||||
|
"https://api.nuget.org/v3/index.json": {} |
||||||
|
}, |
||||||
|
"frameworks": { |
||||||
|
"net6.0": { |
||||||
|
"targetAlias": "net6.0", |
||||||
|
"projectReferences": {} |
||||||
|
} |
||||||
|
}, |
||||||
|
"warningProperties": { |
||||||
|
"warnAsError": [ |
||||||
|
"NU1605" |
||||||
|
] |
||||||
|
} |
||||||
|
}, |
||||||
|
"frameworks": { |
||||||
|
"net6.0": { |
||||||
|
"targetAlias": "net6.0", |
||||||
|
"dependencies": { |
||||||
|
"Newtonsoft.Json": { |
||||||
|
"target": "Package", |
||||||
|
"version": "[13.0.3, )" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore": { |
||||||
|
"target": "Package", |
||||||
|
"version": "[6.0.0, )" |
||||||
|
} |
||||||
|
}, |
||||||
|
"imports": [ |
||||||
|
"net461", |
||||||
|
"net462", |
||||||
|
"net47", |
||||||
|
"net471", |
||||||
|
"net472", |
||||||
|
"net48", |
||||||
|
"net481" |
||||||
|
], |
||||||
|
"assetTargetFallback": true, |
||||||
|
"warn": true, |
||||||
|
"frameworkReferences": { |
||||||
|
"Microsoft.AspNetCore.App": { |
||||||
|
"privateAssets": "none" |
||||||
|
}, |
||||||
|
"Microsoft.NETCore.App": { |
||||||
|
"privateAssets": "all" |
||||||
|
} |
||||||
|
}, |
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.306\\RuntimeIdentifierGraph.json" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?> |
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> |
||||||
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> |
||||||
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> |
||||||
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> |
||||||
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> |
||||||
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\callm\.nuget\packages\;C:\Program Files (x86)\DevExpress 21.1\Components\Offline Packages;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages;C:\Program Files (x86)\Microsoft\Xamarin\NuGet\</NuGetPackageFolders> |
||||||
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> |
||||||
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.6.0</NuGetToolVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> |
||||||
|
<SourceRoot Include="C:\Users\callm\.nuget\packages\" /> |
||||||
|
<SourceRoot Include="C:\Program Files (x86)\DevExpress 21.1\Components\Offline Packages\" /> |
||||||
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" /> |
||||||
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft\Xamarin\NuGet\" /> |
||||||
|
</ItemGroup> |
||||||
|
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> |
||||||
|
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props')" /> |
||||||
|
<Import Project="$(NuGetPackageRoot)swashbuckle.aspnetcore\6.0.0\build\Swashbuckle.AspNetCore.props" Condition="Exists('$(NuGetPackageRoot)swashbuckle.aspnetcore\6.0.0\build\Swashbuckle.AspNetCore.props')" /> |
||||||
|
</ImportGroup> |
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> |
||||||
|
<PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\callm\.nuget\packages\microsoft.extensions.apidescription.server\3.0.0</PkgMicrosoft_Extensions_ApiDescription_Server> |
||||||
|
</PropertyGroup> |
||||||
|
</Project> |
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?> |
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||||
|
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> |
||||||
|
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets')" /> |
||||||
|
</ImportGroup> |
||||||
|
</Project> |
@ -0,0 +1,348 @@ |
|||||||
|
{ |
||||||
|
"version": 3, |
||||||
|
"targets": { |
||||||
|
"net6.0": { |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": { |
||||||
|
"type": "package", |
||||||
|
"build": { |
||||||
|
"build/Microsoft.Extensions.ApiDescription.Server.props": {}, |
||||||
|
"build/Microsoft.Extensions.ApiDescription.Server.targets": {} |
||||||
|
}, |
||||||
|
"buildMultiTargeting": { |
||||||
|
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props": {}, |
||||||
|
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets": {} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"type": "package", |
||||||
|
"compile": { |
||||||
|
"lib/netstandard2.0/Microsoft.OpenApi.dll": { |
||||||
|
"related": ".pdb;.xml" |
||||||
|
} |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netstandard2.0/Microsoft.OpenApi.dll": { |
||||||
|
"related": ".pdb;.xml" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"type": "package", |
||||||
|
"compile": { |
||||||
|
"lib/net6.0/Newtonsoft.Json.dll": { |
||||||
|
"related": ".xml" |
||||||
|
} |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/net6.0/Newtonsoft.Json.dll": { |
||||||
|
"related": ".xml" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.Extensions.ApiDescription.Server": "3.0.0", |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI": "6.0.0" |
||||||
|
}, |
||||||
|
"build": { |
||||||
|
"build/Swashbuckle.AspNetCore.props": {} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.OpenApi": "1.2.3" |
||||||
|
}, |
||||||
|
"compile": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": { |
||||||
|
"related": ".pdb;.xml" |
||||||
|
} |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": { |
||||||
|
"related": ".pdb;.xml" |
||||||
|
} |
||||||
|
}, |
||||||
|
"frameworkReferences": [ |
||||||
|
"Microsoft.AspNetCore.App" |
||||||
|
] |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"dependencies": { |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0" |
||||||
|
}, |
||||||
|
"compile": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { |
||||||
|
"related": ".pdb;.xml" |
||||||
|
} |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { |
||||||
|
"related": ".pdb;.xml" |
||||||
|
} |
||||||
|
}, |
||||||
|
"frameworkReferences": [ |
||||||
|
"Microsoft.AspNetCore.App" |
||||||
|
] |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"compile": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { |
||||||
|
"related": ".pdb;.xml" |
||||||
|
} |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { |
||||||
|
"related": ".pdb;.xml" |
||||||
|
} |
||||||
|
}, |
||||||
|
"frameworkReferences": [ |
||||||
|
"Microsoft.AspNetCore.App" |
||||||
|
] |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"libraries": { |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": { |
||||||
|
"sha512": "LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==", |
||||||
|
"type": "package", |
||||||
|
"path": "microsoft.extensions.apidescription.server/3.0.0", |
||||||
|
"hasTools": true, |
||||||
|
"files": [ |
||||||
|
".nupkg.metadata", |
||||||
|
".signature.p7s", |
||||||
|
"build/Microsoft.Extensions.ApiDescription.Server.props", |
||||||
|
"build/Microsoft.Extensions.ApiDescription.Server.targets", |
||||||
|
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props", |
||||||
|
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets", |
||||||
|
"microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512", |
||||||
|
"microsoft.extensions.apidescription.server.nuspec", |
||||||
|
"tools/Newtonsoft.Json.dll", |
||||||
|
"tools/dotnet-getdocument.deps.json", |
||||||
|
"tools/dotnet-getdocument.dll", |
||||||
|
"tools/dotnet-getdocument.runtimeconfig.json", |
||||||
|
"tools/net461-x86/GetDocument.Insider.exe", |
||||||
|
"tools/net461-x86/GetDocument.Insider.exe.config", |
||||||
|
"tools/net461/GetDocument.Insider.exe", |
||||||
|
"tools/net461/GetDocument.Insider.exe.config", |
||||||
|
"tools/netcoreapp2.1/GetDocument.Insider.deps.json", |
||||||
|
"tools/netcoreapp2.1/GetDocument.Insider.dll", |
||||||
|
"tools/netcoreapp2.1/GetDocument.Insider.runtimeconfig.json" |
||||||
|
] |
||||||
|
}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"sha512": "Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==", |
||||||
|
"type": "package", |
||||||
|
"path": "microsoft.openapi/1.2.3", |
||||||
|
"files": [ |
||||||
|
".nupkg.metadata", |
||||||
|
".signature.p7s", |
||||||
|
"lib/net46/Microsoft.OpenApi.dll", |
||||||
|
"lib/net46/Microsoft.OpenApi.pdb", |
||||||
|
"lib/net46/Microsoft.OpenApi.xml", |
||||||
|
"lib/netstandard2.0/Microsoft.OpenApi.dll", |
||||||
|
"lib/netstandard2.0/Microsoft.OpenApi.pdb", |
||||||
|
"lib/netstandard2.0/Microsoft.OpenApi.xml", |
||||||
|
"microsoft.openapi.1.2.3.nupkg.sha512", |
||||||
|
"microsoft.openapi.nuspec" |
||||||
|
] |
||||||
|
}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"sha512": "HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==", |
||||||
|
"type": "package", |
||||||
|
"path": "newtonsoft.json/13.0.3", |
||||||
|
"files": [ |
||||||
|
".nupkg.metadata", |
||||||
|
".signature.p7s", |
||||||
|
"LICENSE.md", |
||||||
|
"README.md", |
||||||
|
"lib/net20/Newtonsoft.Json.dll", |
||||||
|
"lib/net20/Newtonsoft.Json.xml", |
||||||
|
"lib/net35/Newtonsoft.Json.dll", |
||||||
|
"lib/net35/Newtonsoft.Json.xml", |
||||||
|
"lib/net40/Newtonsoft.Json.dll", |
||||||
|
"lib/net40/Newtonsoft.Json.xml", |
||||||
|
"lib/net45/Newtonsoft.Json.dll", |
||||||
|
"lib/net45/Newtonsoft.Json.xml", |
||||||
|
"lib/net6.0/Newtonsoft.Json.dll", |
||||||
|
"lib/net6.0/Newtonsoft.Json.xml", |
||||||
|
"lib/netstandard1.0/Newtonsoft.Json.dll", |
||||||
|
"lib/netstandard1.0/Newtonsoft.Json.xml", |
||||||
|
"lib/netstandard1.3/Newtonsoft.Json.dll", |
||||||
|
"lib/netstandard1.3/Newtonsoft.Json.xml", |
||||||
|
"lib/netstandard2.0/Newtonsoft.Json.dll", |
||||||
|
"lib/netstandard2.0/Newtonsoft.Json.xml", |
||||||
|
"newtonsoft.json.13.0.3.nupkg.sha512", |
||||||
|
"newtonsoft.json.nuspec", |
||||||
|
"packageIcon.png" |
||||||
|
] |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"sha512": "VxukQYrUrxNUWQocOxmxua/4fZOPBdGCLSaoZYRNthZae0UXB+fzjTBTlj24fZEQrP+QTnsRwSygN9jNBqm/hg==", |
||||||
|
"type": "package", |
||||||
|
"path": "swashbuckle.aspnetcore/6.0.0", |
||||||
|
"files": [ |
||||||
|
".nupkg.metadata", |
||||||
|
".signature.p7s", |
||||||
|
"build/Swashbuckle.AspNetCore.props", |
||||||
|
"swashbuckle.aspnetcore.6.0.0.nupkg.sha512", |
||||||
|
"swashbuckle.aspnetcore.nuspec" |
||||||
|
] |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"sha512": "onkGK5eDFmyNy605E5ZaT5oXEGsQJz2UEKsUOqYCZRBC2Fi6MbByUl+qznyl3pZ9/4nTvukUjt9+v28qvJPk/Q==", |
||||||
|
"type": "package", |
||||||
|
"path": "swashbuckle.aspnetcore.swagger/6.0.0", |
||||||
|
"files": [ |
||||||
|
".nupkg.metadata", |
||||||
|
".signature.p7s", |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll", |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.pdb", |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.xml", |
||||||
|
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll", |
||||||
|
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.pdb", |
||||||
|
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.xml", |
||||||
|
"swashbuckle.aspnetcore.swagger.6.0.0.nupkg.sha512", |
||||||
|
"swashbuckle.aspnetcore.swagger.nuspec" |
||||||
|
] |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"sha512": "RXY21STD/yo4Uzy1L5GoRrEQQWoOosw0QBYo572VwcjePmpV1yFFHsTeThlMNBWKoTt6xadIdSjZj0FmDFYL2A==", |
||||||
|
"type": "package", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggergen/6.0.0", |
||||||
|
"files": [ |
||||||
|
".nupkg.metadata", |
||||||
|
".signature.p7s", |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll", |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.pdb", |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.xml", |
||||||
|
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll", |
||||||
|
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.pdb", |
||||||
|
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.xml", |
||||||
|
"swashbuckle.aspnetcore.swaggergen.6.0.0.nupkg.sha512", |
||||||
|
"swashbuckle.aspnetcore.swaggergen.nuspec" |
||||||
|
] |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"sha512": "VusRaCFt2As3SXBJmUOGA40IGr6ao+vsvDi7jbCS4AFx69kUUm8zxIHeJVqGov3w4lQowVxv8gmonRXDRh1FvQ==", |
||||||
|
"type": "package", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggerui/6.0.0", |
||||||
|
"files": [ |
||||||
|
".nupkg.metadata", |
||||||
|
".signature.p7s", |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll", |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.pdb", |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.xml", |
||||||
|
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll", |
||||||
|
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.pdb", |
||||||
|
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.xml", |
||||||
|
"swashbuckle.aspnetcore.swaggerui.6.0.0.nupkg.sha512", |
||||||
|
"swashbuckle.aspnetcore.swaggerui.nuspec" |
||||||
|
] |
||||||
|
} |
||||||
|
}, |
||||||
|
"projectFileDependencyGroups": { |
||||||
|
"net6.0": [ |
||||||
|
"Newtonsoft.Json >= 13.0.3", |
||||||
|
"Swashbuckle.AspNetCore >= 6.0.0" |
||||||
|
] |
||||||
|
}, |
||||||
|
"packageFolders": { |
||||||
|
"C:\\Users\\callm\\.nuget\\packages\\": {}, |
||||||
|
"C:\\Program Files (x86)\\DevExpress 21.1\\Components\\Offline Packages": {}, |
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}, |
||||||
|
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\": {} |
||||||
|
}, |
||||||
|
"project": { |
||||||
|
"version": "1.0.0", |
||||||
|
"restore": { |
||||||
|
"projectUniqueName": "C:\\Users\\callm\\source\\repos\\24Hour.Service\\WebApplication1\\WebApplication1.csproj", |
||||||
|
"projectName": "WebApplication1", |
||||||
|
"projectPath": "C:\\Users\\callm\\source\\repos\\24Hour.Service\\WebApplication1\\WebApplication1.csproj", |
||||||
|
"packagesPath": "C:\\Users\\callm\\.nuget\\packages\\", |
||||||
|
"outputPath": "C:\\Users\\callm\\source\\repos\\24Hour.Service\\WebApplication1\\obj\\", |
||||||
|
"projectStyle": "PackageReference", |
||||||
|
"fallbackFolders": [ |
||||||
|
"C:\\Program Files (x86)\\DevExpress 21.1\\Components\\Offline Packages", |
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages", |
||||||
|
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\" |
||||||
|
], |
||||||
|
"configFilePaths": [ |
||||||
|
"C:\\Users\\callm\\AppData\\Roaming\\NuGet\\NuGet.Config", |
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 21.1.config", |
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", |
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config", |
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config" |
||||||
|
], |
||||||
|
"originalTargetFrameworks": [ |
||||||
|
"net6.0" |
||||||
|
], |
||||||
|
"sources": { |
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, |
||||||
|
"C:\\Program Files\\dotnet\\library-packs": {}, |
||||||
|
"C:\\Program Files\\dotnet\\sdk\\7.0.306\\Sdks\\Microsoft.NET.Sdk.Web\\library-packs": {}, |
||||||
|
"http://47.108.27.176:14520/v3/index.json": {}, |
||||||
|
"https://api.nuget.org/v3/index.json": {} |
||||||
|
}, |
||||||
|
"frameworks": { |
||||||
|
"net6.0": { |
||||||
|
"targetAlias": "net6.0", |
||||||
|
"projectReferences": {} |
||||||
|
} |
||||||
|
}, |
||||||
|
"warningProperties": { |
||||||
|
"warnAsError": [ |
||||||
|
"NU1605" |
||||||
|
] |
||||||
|
} |
||||||
|
}, |
||||||
|
"frameworks": { |
||||||
|
"net6.0": { |
||||||
|
"targetAlias": "net6.0", |
||||||
|
"dependencies": { |
||||||
|
"Newtonsoft.Json": { |
||||||
|
"target": "Package", |
||||||
|
"version": "[13.0.3, )" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore": { |
||||||
|
"target": "Package", |
||||||
|
"version": "[6.0.0, )" |
||||||
|
} |
||||||
|
}, |
||||||
|
"imports": [ |
||||||
|
"net461", |
||||||
|
"net462", |
||||||
|
"net47", |
||||||
|
"net471", |
||||||
|
"net472", |
||||||
|
"net48", |
||||||
|
"net481" |
||||||
|
], |
||||||
|
"assetTargetFallback": true, |
||||||
|
"warn": true, |
||||||
|
"frameworkReferences": { |
||||||
|
"Microsoft.AspNetCore.App": { |
||||||
|
"privateAssets": "none" |
||||||
|
}, |
||||||
|
"Microsoft.NETCore.App": { |
||||||
|
"privateAssets": "all" |
||||||
|
} |
||||||
|
}, |
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.306\\RuntimeIdentifierGraph.json" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"logs": [ |
||||||
|
{ |
||||||
|
"code": "NU1803", |
||||||
|
"level": "Warning", |
||||||
|
"warningLevel": 1, |
||||||
|
"message": "正在通过 “HTTP” 源“http://47.108.27.176:14520/v3/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。" |
||||||
|
} |
||||||
|
] |
||||||
|
} |
@ -0,0 +1,23 @@ |
|||||||
|
{ |
||||||
|
"version": 2, |
||||||
|
"dgSpecHash": "bS9QmmqQfP2i+ZmyVBEAp0TYQIot5GcyS3RQwnH4Hh6v20ZDeAtFDtGdQ3lt1YmygMIcbytxIyewDi05IvOoYw==", |
||||||
|
"success": true, |
||||||
|
"projectFilePath": "C:\\Users\\callm\\source\\repos\\24Hour.Service\\WebApplication1\\WebApplication1.csproj", |
||||||
|
"expectedPackageFiles": [ |
||||||
|
"C:\\Users\\callm\\.nuget\\packages\\microsoft.extensions.apidescription.server\\3.0.0\\microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512", |
||||||
|
"C:\\Users\\callm\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512", |
||||||
|
"C:\\Users\\callm\\.nuget\\packages\\newtonsoft.json\\13.0.3\\newtonsoft.json.13.0.3.nupkg.sha512", |
||||||
|
"C:\\Users\\callm\\.nuget\\packages\\swashbuckle.aspnetcore\\6.0.0\\swashbuckle.aspnetcore.6.0.0.nupkg.sha512", |
||||||
|
"C:\\Users\\callm\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.0.0\\swashbuckle.aspnetcore.swagger.6.0.0.nupkg.sha512", |
||||||
|
"C:\\Users\\callm\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\6.0.0\\swashbuckle.aspnetcore.swaggergen.6.0.0.nupkg.sha512", |
||||||
|
"C:\\Users\\callm\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.0.0\\swashbuckle.aspnetcore.swaggerui.6.0.0.nupkg.sha512" |
||||||
|
], |
||||||
|
"logs": [ |
||||||
|
{ |
||||||
|
"code": "NU1803", |
||||||
|
"level": "Warning", |
||||||
|
"warningLevel": 1, |
||||||
|
"message": "正在通过 “HTTP” 源“http://47.108.27.176:14520/v3/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。" |
||||||
|
} |
||||||
|
] |
||||||
|
} |
Loading…
Reference in new issue