package wechat type Repository struct { Name string `json:"name"` Url string `json:"url"` HomePage string `json:"homepage"` } type Author struct { Name string `json:"name"` Email string `json:"email"` } type Commit struct { Id string `json:"id"` Url string `json:"url"` Message string `json:"message"` Timestamp string `json:"timestamp"` Author Author `json:"author"` } type Project struct { Name string `json:"name"` } type GitlabWebHook struct { UserName string `json:"user_name"` ObjectKind string `json:"object_kind"` TotalCommitsCount int `json:"total_commits_count"` Repository Repository `json:"repository"` Ref string `json:"ref"` Commits []Commit `json:"commits"` Project Project `json:"project"` } type WechatMarkdown struct { Content string `json:"content"` } type WechatWebHook struct { MsgType string `json:"msgtype"` Markdown WechatMarkdown `json:"markdown"` }