This commit is contained in:
CortexCore 2024-07-29 16:18:15 +08:00
parent d291923276
commit 0c67c4ce42
2 changed files with 10 additions and 5 deletions

View File

@ -1,11 +1,12 @@
using System;
using BITKit.Entities;
using Newtonsoft.Json;
namespace WeChatSharp
{
[Serializable]
public record WeChatUserInfo
public record WeChatUserInfo:IdComponent_String
{
[JsonProperty(propertyName: "subscribe")]
public int Subscribe;
@ -50,6 +51,8 @@ namespace WeChatSharp
[JsonProperty(propertyName: "qr_scene_str")]
public string QrSceneStr;
public string Id => OpenId;
}
/*
{

View File

@ -1,17 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>12</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0-preview.4.23259.5" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="UniTask" Version="2.3.3" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BITKit\BITKit.csproj" />
</ItemGroup>
</Project>