Skip to content

Commit

Permalink
修复订阅消息发送功能
Browse files Browse the repository at this point in the history
  • Loading branch information
royalrick committed Oct 17, 2021
1 parent 224685d commit 7eb40a2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion subscribemessage/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ type SendRequest struct {
TemplateID string `json:"template_id"`
Page string `json:"page,omitempty"`
MiniprogramState MiniprogramState `json:"miniprogram_state,omitempty"`
Data string `json:"data"`
Data SendData `json:"data"`
}

// 模板数据内容
type SendData map[string]SendValue

// 模板变量值
type SendValue struct {
Value string `json:"value"`
}

// MiniprogramState 跳转小程序类型
Expand Down

0 comments on commit 7eb40a2

Please sign in to comment.