-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: master
Are you sure you want to change the base?
公众号管理模块 #46
Conversation
… into feature-official
/// OAuth 授权回调,用于微信公众号网页使用授权码换取 AccessToken | ||
/// </summary> | ||
[CanBeNull] | ||
public virtual string OAuthRedirectUrl { get; protected set; } |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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生成失败" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error code识别需有命名空间支持,参考:
https://github.com/EasyAbp/EShop/blob/29cf960a5ebe9fea205a54580907a331e1578516/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain.Shared/EasyAbp/EShop/Orders/Localization/Orders/zh-Hans.json#L47-L58
https://docs.abp.io/en/abp/latest/Exception-Handling#business-exceptions
|
||
public static class OfficialsErrorCodes | ||
{ | ||
//Add your business exception error codes here... |
There was a problem hiding this comment.
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" /> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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")] |
There was a problem hiding this comment.
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")); | ||
|
There was a problem hiding this comment.
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;" |
There was a problem hiding this comment.
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)" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basic主题是否需要?
目前仅实现登录及用户信息相关模块