fix and remove

This commit is contained in:
The Foxon 2023-12-17 22:55:35 +12:00
parent 426c0df014
commit 8d534d083d
2 changed files with 1 additions and 24 deletions

View File

@ -1,23 +0,0 @@
package anilibria
import (
"encoding/json"
"errors"
"git.thefoxon.ru/anilibria/anilibria-go/model"
)
func GetTitleList() (title *[]model.Title, err error) {
reqBody, status, err := request("GET", "/v3/title/list", nil)
if status != 200 {
return nil, errors.New(errorFetchTitle)
}
if err = json.Unmarshal(reqBody, &title); err != nil {
return nil, err
}
return
}

View File

@ -7,7 +7,7 @@ import (
"git.thefoxon.ru/anilibria/anilibria-go/model"
)
func GetTitleUpdates() (titles *[]model.TitleList, err error) {
func GetTitleUpdates() (titles *model.TitleList, err error) {
reqBody, status, err := request("GET", "/v3/title/updates", nil)