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.
32 lines
711 B
32 lines
711 B
// ================================================================================
|
|
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|
// You can delete these comments if you wish manually maintain this interface file.
|
|
// ================================================================================
|
|
|
|
package service
|
|
|
|
import (
|
|
"context"
|
|
"link_homework/internal/model/entity"
|
|
)
|
|
|
|
type (
|
|
ILive interface {
|
|
GetLiveList(ctx context.Context) (liveList []*entity.Live, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localLive ILive
|
|
)
|
|
|
|
func Live() ILive {
|
|
if localLive == nil {
|
|
panic("implement not found for interface ILive, forgot register?")
|
|
}
|
|
return localLive
|
|
}
|
|
|
|
func RegisterLive(i ILive) {
|
|
localLive = i
|
|
}
|