3 changed files with 0 additions and 75 deletions
@ -1,25 +0,0 @@ |
|||||
<Project Sdk="Microsoft.NET.Sdk"> |
|
||||
|
|
||||
<Import Project="..\..\..\..\configureawait.props" /> |
|
||||
<Import Project="..\..\..\..\common.props" /> |
|
||||
|
|
||||
<PropertyGroup> |
|
||||
<TargetFramework>net9.0</TargetFramework> |
|
||||
<AssemblyName>LINGYUN.Abp.Account.WeChat.Work</AssemblyName> |
|
||||
<PackageId>LINGYUN.Abp.Account.WeChat.Work</PackageId> |
|
||||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> |
|
||||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> |
|
||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> |
|
||||
<RootNamespace /> |
|
||||
</PropertyGroup> |
|
||||
|
|
||||
<ItemGroup> |
|
||||
<PackageReference Include="Volo.Abp.AspNetCore.Mvc" /> |
|
||||
</ItemGroup> |
|
||||
|
|
||||
<ItemGroup> |
|
||||
<ProjectReference Include="..\..\..\framework\wechat\LINGYUN.Abp.WeChat.Work\LINGYUN.Abp.WeChat.Work.csproj" /> |
|
||||
<ProjectReference Include="..\..\identity\LINGYUN.Abp.Identity.Domain\LINGYUN.Abp.Identity.Domain.csproj" /> |
|
||||
</ItemGroup> |
|
||||
|
|
||||
</Project> |
|
||||
@ -1,27 +0,0 @@ |
|||||
using LINGYUN.Abp.WeChat.Work; |
|
||||
using LINGYUN.Abp.WeChat.Work.Localization; |
|
||||
using Microsoft.Extensions.DependencyInjection; |
|
||||
using Volo.Abp.AspNetCore.Mvc; |
|
||||
using Volo.Abp.AspNetCore.Mvc.Localization; |
|
||||
using Volo.Abp.Modularity; |
|
||||
|
|
||||
namespace LINGYUN.Abp.Account.WeChat.Work; |
|
||||
|
|
||||
[DependsOn( |
|
||||
typeof(AbpWeChatWorkModule), |
|
||||
typeof(AbpAspNetCoreMvcModule))] |
|
||||
public class AbpAccountWeChatWorkModule : AbpModule |
|
||||
{ |
|
||||
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
||||
{ |
|
||||
PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options => |
|
||||
{ |
|
||||
options.AddAssemblyResource(typeof(WeChatWorkResource), typeof(AbpAccountWeChatWorkModule).Assembly); |
|
||||
}); |
|
||||
|
|
||||
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
||||
{ |
|
||||
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpAccountWeChatWorkModule).Assembly); |
|
||||
}); |
|
||||
} |
|
||||
} |
|
||||
@ -1,23 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Authorization; |
|
||||
using System.Threading.Tasks; |
|
||||
using Volo.Abp.AspNetCore.Mvc; |
|
||||
using Volo.Abp.Identity; |
|
||||
using Volo.Abp.Users; |
|
||||
|
|
||||
namespace LINGYUN.Abp.Account.WeChat.Work.Controllers; |
|
||||
|
|
||||
[Authorize] |
|
||||
public class WeChatWorkAccountController : AbpControllerBase |
|
||||
{ |
|
||||
private readonly IdentityUserManager identityUserManager; |
|
||||
/// <summary>
|
|
||||
/// 绑定用户
|
|
||||
/// </summary>
|
|
||||
/// <param name="code"></param>
|
|
||||
/// <returns></returns>
|
|
||||
public async virtual Task BindAsync(string code) |
|
||||
{ |
|
||||
var user = await identityUserManager.GetByIdAsync(CurrentUser.GetId()); |
|
||||
|
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue