Browse Source

feat(wechat): Optimize wecom

- fix Selector control calue
- WeChatWorkClaimType add prefix `wecom_`
pull/1353/head
colin 4 months ago
parent
commit
cb69a64a77
  1. 2
      aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Work/LINGYUN/Abp/WeChat/Work/Approvals/Models/ApprovalControlValue.cs
  2. 4
      aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Work/LINGYUN/Abp/WeChat/Work/Approvals/Models/SelectorControlValue.cs
  3. 8
      aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Work/LINGYUN/Abp/WeChat/Work/Security/Claims/AbpWeChatWorkClaimTypes.cs

2
aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Work/LINGYUN/Abp/WeChat/Work/Approvals/Models/ApprovalControlValue.cs

@ -64,7 +64,7 @@ public class ApprovalControlValue
[CanBeNull]
[JsonProperty("selector")]
[JsonPropertyName("selector")]
public SelectorControlValue Selector { get; set; }
public SelectorValue Selector { get; set; }
/// <summary>
/// 关联审批单
/// </summary>

4
aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Work/LINGYUN/Abp/WeChat/Work/Approvals/Models/SelectorControlValue.cs

@ -88,8 +88,8 @@ public class SelectorValueOption
/// 选项值,若配置了多语言则会包含中英文的选项值
/// </summary>
[NotNull]
[JsonProperty("key")]
[JsonPropertyName("key")]
[JsonProperty("value")]
[JsonPropertyName("value")]
public List<SelectorValueOptionValue> Value { get; set; }
public SelectorValueOption()
{

8
aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Work/LINGYUN/Abp/WeChat/Work/Security/Claims/AbpWeChatWorkClaimTypes.cs

@ -4,17 +4,17 @@ public static class AbpWeChatWorkClaimTypes
/// <summary>
/// 唯一标识
/// </summary>
public static string UserId { get; set; } = "userid";
public static string UserId { get; set; } = "wecom_userid";
/// <summary>
/// 二维码名片
/// </summary>
public static string QrCode { get; set; } = "qr_code";
public static string QrCode { get; set; } = "wecom_qr_code";
/// <summary>
/// 企业邮箱
/// </summary>
public static string BizMail { get; set; } = "biz_mail";
public static string BizMail { get; set; } = "wecom_biz_mail";
/// <summary>
/// 地址
/// </summary>
public static string Address { get; set; } = "address";
public static string Address { get; set; } = "wecom_address";
}

Loading…
Cancel
Save