theater

package
v0.0.0-...-931f746 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Theater

type Theater struct {
	Client *resty.Client
}

func New

func New(cfgs ...TheaterConfiguration) (Theater, error)

func (Theater) GetStream

func (s Theater) GetStream(liveId int64, streamId int64) (entity.LiveStreamInfo, error)

func (Theater) GetTheaterWatch

func (s Theater) GetTheaterWatch(liveId int) (entity.TheaterWatchInfo, error)

func (Theater) SendTheaterGiftAllMembers

func (s Theater) SendTheaterGiftAllMembers(userId int64, liveId int64) (entity.TheaterGiftInfo, error)

func (Theater) SendTheaterGiftChooseMembers

func (s Theater) SendTheaterGiftChooseMembers(userId int64, liveId int64) (entity.TheaterGiftChooseMembersInfo, error)

type TheaterConfiguration

type TheaterConfiguration func(*Theater) error

func WithClient

func WithClient(client *resty.Client) TheaterConfiguration

type TheaterRepository

type TheaterRepository interface {
	// @GET("/theater-live/{liveId}/stream/{streamId}")
	// g.b.l<LiveStreamInfo> getStream(@Path("liveId") long j2, @Path("streamId") long j3);
	GetStream(liveId int64, streamId int64) (entity.LiveStreamInfo, error)

	// @GET("/live/{liveId}/watch")
	// g.b.l<TheaterWatchInfo> getTheaterWatch(@Path("liveId") int i2);
	GetTheaterWatch(liveId int) (entity.TheaterWatchInfo, error)

	// @POST("/user/{userId}/theater-live/{liveId}/members/all")
	// g.b.l<TheaterGiftInfo> sendTheaterGiftAllMembers(@Path("userId") long j2, @Path("liveId") long j3);
	SendTheaterGiftAllMembers(userId int64, liveId int64) (entity.TheaterGiftInfo, error)

	// @POST("/user/{userId}/theater-live/{liveId}/members")
	// g.b.l<TheaterGiftChooseMembersInfo> sendTheaterGiftChooseMembers(@Path("userId") long j2, @Path("liveId") long j3);
	SendTheaterGiftChooseMembers(userId int64, liveId int64) (entity.TheaterGiftChooseMembersInfo, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL