Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

公众号管理模块 #46

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

slarkerino
Copy link
Contributor

目前仅实现登录及用户信息相关模块

@slarkerino slarkerino marked this pull request as ready for review July 25, 2022 01:30
@gdlcf88 gdlcf88 self-requested a review July 25, 2022 05:03
/// OAuth 授权回调,用于微信公众号网页使用授权码换取 AccessToken
/// </summary>
[CanBeNull]
public virtual string OAuthRedirectUrl { get; protected set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,8 @@
namespace EasyAbp.WeChatManagement.Officials;

public class OfficialsRemoteServiceConsts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"culture": "zh-Hans",
"texts": {
"WeChatOfficialLogin": "微信公众号登录",
"AuthorizeUrlGenerationFailed": "公众号授权url生成失败"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


public static class OfficialsErrorCodes
{
//Add your business exception error codes here...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="EasyAbp\WeChatManagement\Officials\Localization\en.json" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
[RemoteService(Name = WeChatManagementRemoteServiceConsts.RemoteServiceName)]
[Route("/api/wechat-management/mini-programs/user-info")]
public class UserInfoController : OfficialsController, IUserInfoAppService
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

virtual methods.

namespace EasyAbp.WeChatManagement.Officials.UserInfos
{
[RemoteService(Name = WeChatManagementRemoteServiceConsts.RemoteServiceName)]
[Route("/api/wechat-management/mini-programs/user-info")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

全局搜索mini字样检查遗漏

{
//Add main menu items.
//context.Menu.AddItem(new ApplicationMenuItem(OfficialsMenus.Prefix, displayName: "Officials", "~/Officials", icon: "fa fa-globe"));

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

菜单项配置

@@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=WeChatManagementSample;Trusted_Connection=True"
"Default": "Server=.;Database=WeChatManagementSample;User ID=sa;Password=123;"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请勿修改sample项目连接串

@@ -40,6 +40,8 @@
<ProjectReference Include="..\WeChatManagementSample.HttpApi\WeChatManagementSample.HttpApi.csproj" />
<ProjectReference Include="..\WeChatManagementSample.EntityFrameworkCore\WeChatManagementSample.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\MiniPrograms\src\EasyAbp.WeChatManagement.MiniPrograms.Web\EasyAbp.WeChatManagement.MiniPrograms.Web.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\Officials\src\EasyAbp.WeChatManagement.Officials.Web\EasyAbp.WeChatManagement.Officials.Web.csproj" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic" Version="$(AbpVersion)" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basic主题是否需要?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants