From 0239699b22f9155418c5eba5127ac0ba6ae5d40b Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 4 Jul 2023 15:45:07 +0800 Subject: [PATCH] fix: Action struct's field 'Permission' json tag error --- dto/keyboard/keyboard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dto/keyboard/keyboard.go b/dto/keyboard/keyboard.go index c164a2c..d2ff0e5 100644 --- a/dto/keyboard/keyboard.go +++ b/dto/keyboard/keyboard.go @@ -56,7 +56,7 @@ type RenderData struct { // Action 按纽点击操作 type Action struct { Type ActionType `json:"type,omitempty"` // 操作类型 - Permission *Permission `son:"permission,omitempty"` // 可操作 + Permission *Permission `json:"permission,omitempty"` // 可操作 ClickLimit uint32 `json:"click_limit,omitempty"` // 可点击的次数, 默认不限 Data string `json:"data,omitempty"` // 操作相关数据 AtBotShowChannelList bool `json:"at_bot_show_channel_list,omitempty"` // false:当前 true:弹出展示子频道选择器