/
api_timeline_service.go
73 lines (56 loc) · 3.51 KB
/
api_timeline_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* UsagiBooru Accounts API
*
* Accounts related api (required)
*
* API version: 2.0
* Contact: dsgamer777@gmail.com
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gen
import (
"context"
"errors"
"net/http"
)
// TimelineApiService is a service that implents the logic for the TimelineApiServicer
// This service should implement the business logic for every endpoint for the TimelineApi API.
// Include any external packages or services that will be required by this service.
type TimelineApiService struct {
}
// NewTimelineApiService creates a default api service
func NewTimelineApiService() TimelineApiServicer {
return &TimelineApiService{}
}
// FollowArtist - Follow artist
func (s *TimelineApiService) FollowArtist(ctx context.Context, accountID int32, lightArtistStruct LightArtistStruct) (ImplResponse, error) {
// TODO - update FollowArtist with the required logic for this service method.
// Add api_timeline_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation.
//TODO: Uncomment the next line to return response Response(204, GeneralMessageResponse{}) or use other options such as http.Ok ...
//return Response(204, GeneralMessageResponse{}), nil
//TODO: Uncomment the next line to return response Response(404, GeneralMessageResponse{}) or use other options such as http.Ok ...
//return Response(404, GeneralMessageResponse{}), nil
//TODO: Uncomment the next line to return response Response(409, GeneralMessageResponse{}) or use other options such as http.Ok ...
//return Response(409, GeneralMessageResponse{}), nil
return Response(http.StatusNotImplemented, nil), errors.New("FollowArtist method not implemented")
}
// GetFollowingArtists - Get timeline followings
func (s *TimelineApiService) GetFollowingArtists(ctx context.Context, accountID int32, sort string, order string, page int32) (ImplResponse, error) {
// TODO - update GetFollowingArtists with the required logic for this service method.
// Add api_timeline_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation.
//TODO: Uncomment the next line to return response Response(200, GetTimelineFollowingResponse{}) or use other options such as http.Ok ...
//return Response(200, GetTimelineFollowingResponse{}), nil
return Response(http.StatusNotImplemented, nil), errors.New("GetFollowingArtists method not implemented")
}
// UnfollowArtist - Unfollow artist
func (s *TimelineApiService) UnfollowArtist(ctx context.Context, accountID int32, lightArtistStruct LightArtistStruct) (ImplResponse, error) {
// TODO - update UnfollowArtist with the required logic for this service method.
// Add api_timeline_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation.
//TODO: Uncomment the next line to return response Response(204, GeneralMessageResponse{}) or use other options such as http.Ok ...
//return Response(204, GeneralMessageResponse{}), nil
//TODO: Uncomment the next line to return response Response(404, GeneralMessageResponse{}) or use other options such as http.Ok ...
//return Response(404, GeneralMessageResponse{}), nil
//TODO: Uncomment the next line to return response Response(409, GeneralMessageResponse{}) or use other options such as http.Ok ...
//return Response(409, GeneralMessageResponse{}), nil
return Response(http.StatusNotImplemented, nil), errors.New("UnfollowArtist method not implemented")
}