forked from EasyAbp/Abp.WeChat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "获取设置的行业信息" method at template message service.
- Loading branch information
GameBelial
committed
Dec 17, 2020
1 parent
3b93fd3
commit 7513eb0
Showing
3 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
src/Official/EasyAbp.Abp.WeChat.Official/Services/TemplateMessage/GetIndustryResponse.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using EasyAbp.Abp.WeChat.Official.Infrastructure.Models; | ||
using Newtonsoft.Json; | ||
|
||
namespace EasyAbp.Abp.WeChat.Official.Services.TemplateMessage | ||
{ | ||
/// <summary> | ||
/// 获取消息模版对应的行业信息。 | ||
/// </summary> | ||
public class GetIndustryResponse : OfficialCommonResponse | ||
{ | ||
/// <summary> | ||
/// 账号设置的主营行业。 | ||
/// </summary> | ||
[JsonProperty("primary_industry")] | ||
public IndustryItem PrimaryIndustry { get; set; } | ||
|
||
/// <summary> | ||
/// 账号设置的副营行业。 | ||
/// </summary> | ||
[JsonProperty("secondary_industry")] | ||
public IndustryItem SecondaryIndustry { get; set; } | ||
} | ||
|
||
public class IndustryItem | ||
{ | ||
/// <summary> | ||
/// 主行业。 | ||
/// </summary> | ||
[JsonProperty("first_class")] | ||
public string FirstClass { get; set; } | ||
|
||
/// <summary> | ||
/// 副行业。 | ||
/// </summary> | ||
[JsonProperty("second_class")] | ||
public string SecondClass { get; set; } | ||
} | ||
} |
This file contains 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
This file contains 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