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

  1. // ================================================================================
  2. // Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
  3. // You can delete these comments if you wish manually maintain this interface file.
  4. // ================================================================================
  5. package service
  6. import (
  7. "context"
  8. "link_homework/internal/model/entity"
  9. )
  10. type (
  11. ILive interface {
  12. GetLiveList(ctx context.Context) (liveList []*entity.Live, err error)
  13. }
  14. )
  15. var (
  16. localLive ILive
  17. )
  18. func Live() ILive {
  19. if localLive == nil {
  20. panic("implement not found for interface ILive, forgot register?")
  21. }
  22. return localLive
  23. }
  24. func RegisterLive(i ILive) {
  25. localLive = i
  26. }