Skip to content

Commit

Permalink
增加事件体
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente.Yu <^@^>
  • Loading branch information
Vicente.Yu committed Sep 1, 2024
1 parent 8a968a8 commit ecf1285
Show file tree
Hide file tree
Showing 146 changed files with 15,666 additions and 12 deletions.
6 changes: 0 additions & 6 deletions FeishuNetSdk.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleApp1", "samples\Cons
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApplication1", "samples\WebApplication1\WebApplication1.csproj", "{4969EB46-D7B9-4A13-A732-8E826D1CF79F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FeishuNetSdk.WebSocket", "..\FeishuNetSdk.WebSocket\FeishuNetSdk.WebSocket.csproj", "{B11C03A8-59BE-4633-80F5-89E4649C2611}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -43,10 +41,6 @@ Global
{4969EB46-D7B9-4A13-A732-8E826D1CF79F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4969EB46-D7B9-4A13-A732-8E826D1CF79F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4969EB46-D7B9-4A13-A732-8E826D1CF79F}.Release|Any CPU.Build.0 = Release|Any CPU
{B11C03A8-59BE-4633-80F5-89E4649C2611}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B11C03A8-59BE-4633-80F5-89E4649C2611}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B11C03A8-59BE-4633-80F5-89E4649C2611}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B11C03A8-59BE-4633-80F5-89E4649C2611}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
65 changes: 65 additions & 0 deletions src/Acs.Events/AcsAccessRecordCreatedV1EventBodyDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// ************************************************************************
// Assembly : FeishuNetSdk
// Author : yxr
// Created : 2024-09-01
//
// Last Modified By : yxr
// Last Modified On : 2024-09-01
// ************************************************************************
// <copyright file="AcsAccessRecordCreatedV1EventBodyDto.cs" company="Vicente Yu">
// MIT
// </copyright>
// <summary>新增门禁访问记录 事件体</summary>
// ************************************************************************
namespace FeishuNetSdk.Acs.Events;
/// <summary>
/// 新增门禁访问记录 事件体
/// <para>门禁设备识别用户成功后发送该事件给订阅应用。{使用示例}(url=/api/tools/api_explore/api_explore_config?project=acs&amp;version=v1&amp;resource=access_record&amp;event=created)</para>
/// <para>接口ID:6979790924692013058</para>
/// <para>文档地址:https://open.feishu.cn/document/server-docs/acs-v1/access_record/events/created</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2facs-v1%2faccess_record%2fevents%2fcreated</para>
/// </summary>
public record AcsAccessRecordCreatedV1EventBodyDto() : EventBodyDto("acs.access_record.created_v1")
{
/// <summary>
/// <para>门禁记录 ID</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("access_record_id")]
public string? AccessRecordId { get; set; }

/// <summary>
/// <para>用户 ID</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("user_id")]
public UserIdSuffix? UserId { get; set; }

/// <summary>
/// <para>设备 ID</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("device_id")]
public string? DeviceId { get; set; }

/// <summary>
/// <para>是否打卡</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("is_clock_in")]
public bool? IsClockIn { get; set; }

/// <summary>
/// <para>是否开门</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("is_door_open")]
public bool? IsDoorOpen { get; set; }

/// <summary>
/// <para>识别时间 (单位:秒)</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("access_time")]
public string? AccessTime { get; set; }
}
44 changes: 44 additions & 0 deletions src/Acs.Events/AcsUserUpdatedV1EventBodyDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// ************************************************************************
// Assembly : FeishuNetSdk
// Author : yxr
// Created : 2024-09-01
//
// Last Modified By : yxr
// Last Modified On : 2024-09-01
// ************************************************************************
// <copyright file="AcsUserUpdatedV1EventBodyDto.cs" company="Vicente Yu">
// MIT
// </copyright>
// <summary>用户信息变更 事件体</summary>
// ************************************************************************
namespace FeishuNetSdk.Acs.Events;
/// <summary>
/// 用户信息变更 事件体
/// <para>智能门禁用户特征值变化时,发送此事件。{使用示例}(url=/api/tools/api_explore/api_explore_config?project=acs&amp;version=v1&amp;resource=user&amp;event=updated)</para>
/// <para>接口ID:6987691292973907969</para>
/// <para>文档地址:https://open.feishu.cn/document/server-docs/acs-v1/user/events/updated</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2facs-v1%2fuser%2fevents%2fupdated</para>
/// </summary>
public record AcsUserUpdatedV1EventBodyDto() : EventBodyDto("acs.user.updated_v1")
{
/// <summary>
/// <para>用户 ID</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("user_id")]
public UserIdSuffix? UserId { get; set; }

/// <summary>
/// <para>卡号</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("card")]
public int? Card { get; set; }

/// <summary>
/// <para>是否上传人脸图片</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("face_uploaded")]
public bool? FaceUploaded { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// ************************************************************************
// Assembly : FeishuNetSdk
// Author : yxr
// Created : 2024-09-01
//
// Last Modified By : yxr
// Last Modified On : 2024-09-01
// ************************************************************************
// <copyright file="ApplicationApplicationAppVersionAuditV6EventBodyDto.cs" company="Vicente Yu">
// MIT
// </copyright>
// <summary>应用审核 事件体</summary>
// ************************************************************************
namespace FeishuNetSdk.Application.Events;
/// <summary>
/// 应用审核 事件体
/// <para>通过订阅该事件,可接收应用审核(通过 / 拒绝)事件{使用示例}(url=/api/tools/api_explore/api_explore_config?project=application&amp;version=v6&amp;resource=application.app_version&amp;event=audit)</para>
/// <para>接口ID:7005118068771389443</para>
/// <para>文档地址:https://open.feishu.cn/document/server-docs/application-v6/event/audit</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapplication-v6%2fapplication-app_version%2fevents%2faudit</para>
/// </summary>
public record ApplicationApplicationAppVersionAuditV6EventBodyDto() : EventBodyDto("application.application.app_version.audit_v6")
{
/// <summary>
/// <para>通过 / 拒绝应用审核的管理员 id</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("operator_id")]
public UserIdSuffix? OperatorId { get; set; }

/// <summary>
/// <para>被审核的应用版本 id</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("version_id")]
public string? VersionId { get; set; }

/// <summary>
/// <para>应用创建者的 id</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("creator_id")]
public UserIdSuffix? CreatorId { get; set; }

/// <summary>
/// <para>撤回应用的 id</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("app_id")]
public string? AppId { get; set; }

/// <summary>
/// <para>审核通过 / 拒绝</para>
/// <para>**可选值有**:</para>
/// <para>audited:审核通过,reject:审核拒绝</para>
/// <para>必填:否</para>
/// <para>可选值:<list type="bullet">
/// <item>audited:审核通过</item>
/// <item>reject:审核拒绝</item>
/// </list></para>
/// </summary>
[JsonPropertyName("operation")]
public string? Operation { get; set; }

/// <summary>
/// <para>审核信息,当审核拒绝时,管理员填写的拒绝理由</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("remark")]
public string? Remark { get; set; }

/// <summary>
/// <para>应用审核的方式</para>
/// <para>**可选值有**:</para>
/// <para>administrator:管理员审核,auto:自动免审</para>
/// <para>必填:否</para>
/// <para>可选值:<list type="bullet">
/// <item>administrator:管理员审核</item>
/// <item>auto:自动免审</item>
/// </list></para>
/// </summary>
[JsonPropertyName("audit_source")]
public string? AuditSource { get; set; }
}
Loading

0 comments on commit ecf1285

Please sign in to comment.