feat: 新增微信小程序模块

This commit is contained in:
橙子
2024-10-19 14:02:29 +08:00
parent 4ae548cc5b
commit 736995c35b
22 changed files with 372 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
using Volo.Abp.Application.Services;
namespace Yi.Framework.DigitalCollectibles.Application.Services.Account;
public class CollectiblesAccountService: ApplicationService
{
/// <summary>
/// 小程序登录
/// </summary>
/// <returns></returns>
public Task PostLoginAsync()
{
throw new NotImplementedException();
//根据code去获取wxid
//判断wxid中是否有对应的userid关系
//果然有直接根据userid返回该用户token
//如果没有,返回结果即可
}
/// <summary>
/// 小程序绑定账号
/// </summary>
/// <returns></returns>
public Task PostBindAsync()
{
throw new NotImplementedException();
//根据code去获取wxid
//校验手机号
//根据手机号查询用户信息
//将wxid和用户user绑定
}
//小程序注册
public Task PostRegisterAsync()
{
throw new NotImplementedException();
//走普通注册流程
//同时再加一个小程序绑定即可
}
}

View File

@@ -4,6 +4,7 @@
<ItemGroup>
<ProjectReference Include="..\..\..\framework\Yi.Framework.Ddd.Application\Yi.Framework.Ddd.Application.csproj" />
<ProjectReference Include="..\Yi.Framework.DigitalCollectibles.Application.Contracts\Yi.Framework.DigitalCollectibles.Application.Contracts.csproj" />
<ProjectReference Include="..\Yi.Framework.DigitalCollectibles.Domain\Yi.Framework.DigitalCollectibles.Domain.csproj" />
<PackageReference Include="Volo.Abp.BackgroundWorkers.Quartz" Version="$(AbpVersion)" />