From 65430223cdec8637b136520a52f7caeeeb4950dd Mon Sep 17 00:00:00 2001 From: cn-hideyoshi <645165778@qq.com> Date: Tue, 10 Dec 2024 19:21:50 +0800 Subject: [PATCH] type,omitempty --- weixin/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin/base.go b/weixin/base.go index de1cfb7..3a30e6c 100644 --- a/weixin/base.go +++ b/weixin/base.go @@ -49,7 +49,7 @@ type BaseSdk struct { } type OaMenuButton struct { - Type string `json:"type"` + Type string `json:"type,omitempty"` Name string `json:"name"` Key string `json:"key,omitempty"` Url string `json:"url,omitempty"`