wechaty/go-wechaty

View on GitHub
wechaty-puppet/schemas/url_link.go

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package schemas

import "encoding/json"

type UrlLinkPayload struct {
    Description  string `json:"description"`
    ThumbnailUrl string `json:"thumbnailUrl"`
    Title        string `json:"title"`
    Url          string `json:"url"`
}

func (u *UrlLinkPayload) ToJson() string {
    b, _ := json.Marshal(u)
    return string(b)
}