Skip to content

Commit

Permalink
fix: 修复 RequestAccountServiceMsgMenuList 结构体中 json 序列化发送消息的时候,应该 omit…
Browse files Browse the repository at this point in the history
…empty 的数据没有 omitempty 的问题
  • Loading branch information
stormeyes authored Jul 15, 2024
1 parent e44729a commit aad8290
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ type RequestAccountServiceMsgMenu struct {
List []RequestAccountServiceMsgMenuList `json:"list,omitempty"`
}
type RequestAccountServiceMsgMenuList struct {
Type string `json:"type"`
Click RequestAccountServiceMsgMenuListClick `json:"click,omitempty"`
View RequestAccountServiceMsgMenuListView `json:"view,omitempty"`
MiniProgram RequestAccountServiceMsgMenuListMiniProgram `json:"miniprogram,omitempty"`
Type string `json:"type"`
Click *RequestAccountServiceMsgMenuListClick `json:"click,omitempty"`
View *RequestAccountServiceMsgMenuListView `json:"view,omitempty"`
MiniProgram *RequestAccountServiceMsgMenuListMiniProgram `json:"miniprogram,omitempty"`
}
type RequestAccountServiceMsgMenuListClick struct {
ID string `json:"id"`
Expand Down

0 comments on commit aad8290

Please sign in to comment.