mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-06 11:10:24 +08:00
finish schedule
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user