1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-06 11:10:24 +08:00

finish schedule

This commit is contained in:
源文雨
2023-10-13 21:39:49 +09:00
parent e495e2d4d0
commit 1f3529ec88
4 changed files with 111 additions and 4 deletions

View File

@@ -137,3 +137,15 @@ func (bot *Bot) getOpenAPIofPinsMessage(ep string) (*PinsMessage, error) {
}
return &resp.PinsMessage, err
}
func (bot *Bot) getOpenAPIofSchedule(ep string) (*Schedule, error) {
resp := &struct {
CodeMessageBase
Schedule
}{}
err := bot.GetOpenAPI(ep, "", resp)
if err != nil {
err = errors.Wrap(err, getCallerFuncName())
}
return &resp.Schedule, err
}