You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
395 B
26 lines
395 B
package service
|
|
|
|
import (
|
|
"context"
|
|
"practice_Go/api/v1/shows"
|
|
)
|
|
|
|
type (
|
|
IShows interface {
|
|
GetShowsList(ctx context.Context, req *shows.ShowReq) (res shows.GetShowsListRes, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localShows IShows
|
|
)
|
|
|
|
func Shows() IShows {
|
|
if localShows == nil {
|
|
panic("implement not found for interface IShows")
|
|
}
|
|
return localShows
|
|
}
|
|
func RegisterShows(i IShows) {
|
|
localShows = i
|
|
}
|