Skip to content

Commit

Permalink
添加项目文件。
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin committed Apr 17, 2022
1 parent e481e1b commit bcc3afc
Show file tree
Hide file tree
Showing 22 changed files with 3,067 additions and 0 deletions.
21 changes: 21 additions & 0 deletions DingDong.Core/DingDong.Core.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Jint" Version="3.0.0-beta-2037" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="RestSharp" Version="106.15.0" />
</ItemGroup>

<ItemGroup>
<None Update="sign.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
458 changes: 458 additions & 0 deletions DingDong.Core/DingDong/DingDongCore.cs

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions DingDong.Core/Models/DingDongAddressOriginInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
namespace DingDong.Monitor.Models
{
public class DingDongAddressInfoRoot
{
public bool success { get; set; }
public int code { get; set; }
public string message { get; set; }
public DingDongAddressOriginInfo data { get; set; }
}

public class DingDongAddressOriginInfo
{
public List<Valid_Address> valid_address { get; set; }
public List<Valid_Address> invalid_address { get; set; }
public int max_address_count { get; set; }
public bool can_add_address { get; set; }
}

public class Valid_Address
{
public string id { get; set; }
public int gender { get; set; }
public string mobile { get; set; }
public Location location { get; set; }
public string label { get; set; }
public string user_name { get; set; }
public string addr_detail { get; set; }
public string station_id { get; set; }
public string station_name { get; set; }
/// <summary>
/// 是否默认地址
/// </summary>
public bool is_default { get; set; }
public string city_number { get; set; }
public int info_status { get; set; }
public Station_Info station_info { get; set; }
public string village_id { get; set; }
}

public class Location
{
public string typecode { get; set; }
public string address { get; set; }
public string name { get; set; }
public float[] location { get; set; }
public string id { get; set; }
}

public class Station_Info
{
public string id { get; set; }
public string address { get; set; }
public string name { get; set; }
public string phone { get; set; }
public string business_time { get; set; }
public string city_name { get; set; }
public string city_number { get; set; }
}

}
Loading

0 comments on commit bcc3afc

Please sign in to comment.