🆕 新增每日早报功能

This commit is contained in:
李寻欢
2024-05-15 11:15:15 +08:00
parent 16838ff80f
commit 534f7a0ec8
17 changed files with 223 additions and 10 deletions

18
model/news.go Normal file
View File

@@ -0,0 +1,18 @@
package model
// MorningPost
// @description: 每日早报返回结构体
type MorningPost struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data struct {
Date string `json:"date"` // 新闻日期
News []string `json:"news"` // 新闻标题文字版
WeiYu string `json:"weiyu"` // 微语,就是一句屁话
Image string `json:"image"` // 早报完整图片
HeadImage string `json:"head_image"` // 早报头部图片
} `json:"data"`
Time int `json:"time"`
Usage int `json:"usage"`
LogId string `json:"log_id"`
}