From cf6dd1f37d6b1d62c2a2995d9ddca0e6c209f9b7 Mon Sep 17 00:00:00 2001 From: yoogo Date: Thu, 7 Mar 2024 10:11:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=B6=E9=95=BF=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=97=B6=E5=8C=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/oa.md | 7 +++++++ errcodes/mod.go | 2 +- oa.md.go | 10 ++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/oa.md b/docs/oa.md index baead9e..3ef414d 100644 --- a/docs/oa.md +++ b/docs/oa.md @@ -166,7 +166,14 @@ Name|JSON|Type|Doc `NewBegin`|`new_begin`|`int`| 开始时间,unix时间戳 `NewEnd`|`new_end`|`int`| 结束时间,unix时间戳 `NewDuration`|`new_duration`|`int`| 时长范围,单位秒 +`TimezoneInfo`|`timezone_info`|`*OAContentDateRangeTimezoneInfo`|时区信息,只有在非UTC+8的情况下会返回 +### `OAContentDateRangeTimezoneInfo` 时区信息 + +Name|JSON|Type|Doc +:---|:---|:---|:-- +`ZoneOffset`|`zone_offset`|`string`|时区偏移量 +`ZoneDesc`|`zone_desc`|`string`|时区描述 ### `OATemplateDetail` 审批模板详情 diff --git a/errcodes/mod.go b/errcodes/mod.go index 1ffb12f..059f320 100644 --- a/errcodes/mod.go +++ b/errcodes/mod.go @@ -5,7 +5,7 @@ package errcodes // ErrCode 错误码类型 // // 全局错误码文档: https://developer.work.weixin.qq.com/document/path/90313 -// 文档爬取时间: 2024-02-27 13:07:17 +0800 +// 文档爬取时间: 2024-03-07 10:09:58 +0800 // // NOTE: 关于错误码的名字为何如此无聊: // diff --git a/oa.md.go b/oa.md.go index dd2b98b..e756b93 100644 --- a/oa.md.go +++ b/oa.md.go @@ -204,6 +204,16 @@ type OAContentDateRange struct { NewEnd int `json:"new_end"` // NewDuration 时长范围,单位秒 NewDuration int `json:"new_duration"` + // TimezoneInfo 时区信息,只有在非UTC+8的情况下会返回 + TimezoneInfo *OAContentDateRangeTimezoneInfo `json:"timezone_info"` +} + +// OAContentDateRangeTimezoneInfo 时区信息 +type OAContentDateRangeTimezoneInfo struct { + // ZoneOffset 时区偏移量 + ZoneOffset string `json:"zone_offset"` + // ZoneDesc 时区描述 + ZoneDesc string `json:"zone_desc"` } // OATemplateDetail 审批模板详情