fix and remove
This commit is contained in:
parent
426c0df014
commit
8d534d083d
@ -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
|
||||
}
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user