[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #515 from stormeyes/stormeyes-patch-1
Browse files Browse the repository at this point in the history
fix: 修复 RequestAccountServiceMsgMenuList 结构体中 json 序列化发送消息的时候,应该 omitempty 的数据没有 omitempty 的问题
  • Loading branch information
Matrix-X committed Jul 15, 2024
2 parents 0b35b35 + aad8290 commit 322a871
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 322a871

Please sign in to comment.