Open
Conversation
… into feature-official
gdlcf88
requested changes
Jul 27, 2022
| /// OAuth 授权回调,用于微信公众号网页使用授权码换取 AccessToken | ||
| /// </summary> | ||
| [CanBeNull] | ||
| public virtual string OAuthRedirectUrl { get; protected set; } |
Member
There was a problem hiding this comment.
| @@ -0,0 +1,8 @@ | |||
| namespace EasyAbp.WeChatManagement.Officials; | |||
|
|
|||
| public class OfficialsRemoteServiceConsts | |||
Member
There was a problem hiding this comment.
| "culture": "zh-Hans", | ||
| "texts": { | ||
| "WeChatOfficialLogin": "微信公众号登录", | ||
| "AuthorizeUrlGenerationFailed": "公众号授权url生成失败" |
Member
There was a problem hiding this comment.
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... |
Member
There was a problem hiding this comment.
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <EmbeddedResource Include="EasyAbp\WeChatManagement\Officials\Localization\en.json" /> |
Member
There was a problem hiding this comment.
| { | ||
| [RemoteService(Name = WeChatManagementRemoteServiceConsts.RemoteServiceName)] | ||
| [Route("/api/wechat-management/mini-programs/user-info")] | ||
| public class UserInfoController : OfficialsController, IUserInfoAppService |
| namespace EasyAbp.WeChatManagement.Officials.UserInfos | ||
| { | ||
| [RemoteService(Name = WeChatManagementRemoteServiceConsts.RemoteServiceName)] | ||
| [Route("/api/wechat-management/mini-programs/user-info")] |
| { | ||
| //Add main menu items. | ||
| //context.Menu.AddItem(new ApplicationMenuItem(OfficialsMenus.Prefix, displayName: "Officials", "~/Officials", icon: "fa fa-globe")); | ||
|
|
| { | ||
| "ConnectionStrings": { | ||
| "Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=WeChatManagementSample;Trusted_Connection=True" | ||
| "Default": "Server=.;Database=WeChatManagementSample;User ID=sa;Password=123;" |
| <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)" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目前仅实现登录及用户信息相关模块