feat(work): 随官方更新发送普通邮件接口模型

This commit is contained in:
Fu Diwei
2023-05-24 10:17:21 +08:00
parent dba8b17145
commit c3b6354de5
2 changed files with 19 additions and 9 deletions

View File

@@ -291,5 +291,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[Newtonsoft.Json.JsonProperty("meeting")] [Newtonsoft.Json.JsonProperty("meeting")]
[System.Text.Json.Serialization.JsonPropertyName("meeting")] [System.Text.Json.Serialization.JsonPropertyName("meeting")]
public Types.Meeting? Meeting { get; set; } public Types.Meeting? Meeting { get; set; }
/// <summary>
/// 获取或设置是否开启 ID 转译。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_id_trans")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("enable_id_trans")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
public bool? EnableIdTransform { get; set; }
} }
} }

View File

@@ -1,14 +1,14 @@
{ {
"to": { "to": {
"emails": ["word@bgjkcsqy.wecom.work", "jyan1@tiyantest.wang"], "emails": [ "word@bgjkcsqy.wecom.work", "jyan1@tiyantest.wang" ],
"userids": ["william"] "userids": [ "william" ]
}, },
"cc": { "cc": {
"emails": [], "emails": [],
"userids": ["panyy"] "userids": [ "panyy" ]
}, },
"bcc": { "bcc": {
"emails": ["zoro@bgjkcsqy.wecom.work"], "emails": [ "zoro@bgjkcsqy.wecom.work" ],
"userids": [] "userids": []
}, },
"subject": "这是标题", "subject": "这是标题",
@@ -32,7 +32,7 @@
"timezone": 8, "timezone": 8,
"repeat_interval": 1, "repeat_interval": 1,
"repeat_type": 1, "repeat_type": 1,
"repeat_day_of_week": [4, 5], "repeat_day_of_week": [ 4, 5 ],
"repeat_day_of_month": [], "repeat_day_of_month": [],
"repeat_week_of_month": [], "repeat_week_of_month": [],
"repeat_month_of_year": [], "repeat_month_of_year": [],
@@ -52,10 +52,11 @@
"water_mark_type": 0 "water_mark_type": 0
}, },
"hosts": { "hosts": {
"userids": ["zoro"] "userids": [ "zoro" ]
}, },
"meeting_admins": { "meeting_admins": {
"userids": ["zoro"] "userids": [ "zoro" ]
} }
} },
"enable_id_trans": 1
} }