mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-13 17:22:26 +08:00
fix(work): fixed AddGroupWelcomeTemplate Error (#745)
* fix(work): fixed AddGroupWelcomeTemplate Error fixed AddGroupWelcomeTemplate Error , errcode=40063 , errmsg=some parameters are empty * fix(work): fixed AddGroupWelcomeTemplate Error fixed AddGroupWelcomeTemplate Error , errcode=40063 , errmsg=some parameters are empty
This commit is contained in:
@@ -287,14 +287,14 @@ func (r *Client) SendWelcomeMsg(req *SendWelcomeMsgRequest) error {
|
|||||||
|
|
||||||
// AddGroupWelcomeTemplateRequest 添加入群欢迎语素材请求
|
// AddGroupWelcomeTemplateRequest 添加入群欢迎语素材请求
|
||||||
type AddGroupWelcomeTemplateRequest struct {
|
type AddGroupWelcomeTemplateRequest struct {
|
||||||
Text MsgText `json:"text"`
|
Text MsgText `json:"text"`
|
||||||
Image AttachmentImg `json:"image"`
|
Image *AttachmentImg `json:"image,omitempty"`
|
||||||
Link AttachmentLink `json:"link"`
|
Link *AttachmentLink `json:"link,omitempty"`
|
||||||
MiniProgram AttachmentMiniProgram `json:"miniprogram"`
|
MiniProgram *AttachmentMiniProgram `json:"miniprogram,omitempty"`
|
||||||
File AttachmentFile `json:"file"`
|
File *AttachmentFile `json:"file,omitempty"`
|
||||||
Video AttachmentVideo `json:"video"`
|
Video *AttachmentVideo `json:"video,omitempty"`
|
||||||
AgentID int `json:"agentid"`
|
AgentID int `json:"agentid,omitempty"`
|
||||||
Notify int `json:"notify"`
|
Notify int `json:"notify,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddGroupWelcomeTemplateResponse 添加入群欢迎语素材响应
|
// AddGroupWelcomeTemplateResponse 添加入群欢迎语素材响应
|
||||||
@@ -324,14 +324,14 @@ func (r *Client) AddGroupWelcomeTemplate(req *AddGroupWelcomeTemplateRequest) (*
|
|||||||
|
|
||||||
// EditGroupWelcomeTemplateRequest 编辑入群欢迎语素材请求
|
// EditGroupWelcomeTemplateRequest 编辑入群欢迎语素材请求
|
||||||
type EditGroupWelcomeTemplateRequest struct {
|
type EditGroupWelcomeTemplateRequest struct {
|
||||||
TemplateID string `json:"template_id"`
|
TemplateID string `json:"template_id"`
|
||||||
Text MsgText `json:"text"`
|
Text MsgText `json:"text"`
|
||||||
Image AttachmentImg `json:"image"`
|
Image *AttachmentImg `json:"image"`
|
||||||
Link AttachmentLink `json:"link"`
|
Link *AttachmentLink `json:"link"`
|
||||||
MiniProgram AttachmentMiniProgram `json:"miniprogram"`
|
MiniProgram *AttachmentMiniProgram `json:"miniprogram"`
|
||||||
File AttachmentFile `json:"file"`
|
File *AttachmentFile `json:"file"`
|
||||||
Video AttachmentVideo `json:"video"`
|
Video *AttachmentVideo `json:"video"`
|
||||||
AgentID int `json:"agentid"`
|
AgentID int `json:"agentid"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// EditGroupWelcomeTemplateResponse 编辑入群欢迎语素材响应
|
// EditGroupWelcomeTemplateResponse 编辑入群欢迎语素材响应
|
||||||
@@ -366,11 +366,11 @@ type GetGroupWelcomeTemplateRequest struct {
|
|||||||
type GetGroupWelcomeTemplateResponse struct {
|
type GetGroupWelcomeTemplateResponse struct {
|
||||||
util.CommonError
|
util.CommonError
|
||||||
Text MsgText `json:"text"`
|
Text MsgText `json:"text"`
|
||||||
Image AttachmentImg `json:"image"`
|
Image AttachmentImg `json:"image,omitempty"`
|
||||||
Link AttachmentLink `json:"link"`
|
Link AttachmentLink `json:"link,omitempty"`
|
||||||
MiniProgram AttachmentMiniProgram `json:"miniprogram"`
|
MiniProgram AttachmentMiniProgram `json:"miniprogram,omitempty"`
|
||||||
File AttachmentFile `json:"file"`
|
File AttachmentFile `json:"file,omitempty"`
|
||||||
Video AttachmentVideo `json:"video"`
|
Video AttachmentVideo `json:"video,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetGroupWelcomeTemplate 获取入群欢迎语素材
|
// GetGroupWelcomeTemplate 获取入群欢迎语素材
|
||||||
|
|||||||
Reference in New Issue
Block a user