Documentation
¶
Index ¶
- func GetNewsContent(publishTime time.Time) (e error, content []string)
- func GetNotify(software, token string) (msgpush.NotifyPush, error)
- type GoCnNew2023
- type GoCnNewsData2023
- type GocnNew
- type NewTopic2023
- type NewsPush
- type Node
- type Pagination
- type Scheduler
- type Tdk
- type TokenEnable
- type Topic
- type TopicInfoData
- type TopicInfoResp
- type TopicList
- type TopicListData
- type TopicListResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNewsContent ¶
gocn news
Types ¶
type GoCnNew2023 ¶ added in v0.0.9
func NewGoCnNew2023 ¶ added in v0.0.9
func NewGoCnNew2023(client *resty.Client) *GoCnNew2023
func (*GoCnNew2023) GetNewsContent ¶ added in v0.0.9
func (g *GoCnNew2023) GetNewsContent(publishTime time.Time) (error, []string)
type GoCnNewsData2023 ¶ added in v0.0.9
type GoCnNewsData2023 struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data struct {
List []NewTopic2023 `json:"list"`
} `json:"data"`
}
type GocnNew ¶ added in v0.0.6
func NewGocnNew ¶ added in v0.0.6
type NewTopic2023 ¶ added in v0.0.9
type NewsPush ¶ added in v0.0.6
type NewsPush struct {
Pre string
Notifys []msgpush.NotifyPush
}
func (*NewsPush) InitNotifys ¶ added in v0.0.6
type Pagination ¶ added in v0.0.6
type TokenEnable ¶ added in v0.0.6
type Topic ¶ added in v0.0.6
type Topic struct {
GUID string `json:"guid"`
UID int `json:"uid"`
Nickname string `json:"nickname"`
Avatar string `json:"avatar"`
Title string `json:"title"`
ContentHTML string `json:"contentHtml"`
Ctime int `json:"ctime"`
CntView int `json:"cntView"`
Cate2ID int `json:"cate2Id"`
Cate2Title string `json:"cate2Title"`
}
type TopicInfoData ¶ added in v0.0.6
type TopicInfoResp ¶ added in v0.0.6
type TopicInfoResp struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data TopicInfoData `json:"data"`
}
type TopicList ¶ added in v0.0.6
type TopicList struct {
GUID string `json:"guid"`
UID int `json:"uid"`
Nickname string `json:"nickname"`
Avatar string `json:"avatar"`
Title string `json:"title"`
Summary string `json:"summary"`
Ctime int `json:"ctime"`
CntView int `json:"cntView"`
Cate2ID int `json:"cate2Id"`
Cate2Title string `json:"cate2Title"`
CntLike int `json:"cntLike,omitempty"`
CntCollect int `json:"cntCollect,omitempty"`
CntReply int `json:"cntReply,omitempty"`
}
type TopicListData ¶ added in v0.0.6
type TopicListData struct {
List []TopicList `json:"list"`
Pagination Pagination `json:"pagination"`
}
type TopicListResp ¶ added in v0.0.6
type TopicListResp struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data TopicListData `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.