✨ 初始化项目
This commit is contained in:
17
news.go
Normal file
17
news.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package wxworkbot
|
||||
|
||||
type newsMessage struct {
|
||||
message
|
||||
News News `json:"news"`
|
||||
}
|
||||
|
||||
type News struct {
|
||||
Articles []NewsArticle `json:"articles"`
|
||||
}
|
||||
|
||||
type NewsArticle struct {
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
URL string `json:"url"`
|
||||
PicURL string `json:"picurl"`
|
||||
}
|
||||
Reference in New Issue
Block a user