Skip to content

Commit

Permalink
Merge pull request #314 from ArtisanCloud/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Matrix-X committed May 22, 2023
2 parents ca9eba2 + 953a1c1 commit 1773be0
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ func (media *LinkOfMessage) GetMsgType() string {
}

type Link struct {
Title string `json:"title"` // "消息标题",
PicURL string `json:"pic_url"` // "https://example.pic.com/path",
Desc string `json:"desc"` // "消息描述",
URL string `json:"url"` // "https://example.link.com/path"
Title string `json:"title"` // "消息标题",
PicURL string `json:"picurl"` // "https://example.pic.com/path",
Desc string `json:"desc"` // "消息描述",
URL string `json:"url"` // "https://example.link.com/path"
}

type MiniProgramOfMessage struct {
Expand All @@ -56,7 +56,7 @@ type File struct {
}
type FileOfMessage struct {
MsgType string `json:"msgtype"` // "file"
Video *File `json:"file"`
File *File `json:"file"`
}

func (media *FileOfMessage) GetMsgType() string {
Expand Down Expand Up @@ -88,3 +88,7 @@ type Attachment struct {
Video *Video `json:"video,omitempty"`
File *File `json:"file,omitempty"`
}

func (attachment *Attachment) GetMsgType() string {
return attachment.MsgType
}

0 comments on commit 1773be0

Please sign in to comment.