base

package
v0.0.0-...-4cc9216 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	StatusCode int32  `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" form:"status_msg" json:"status_msg" query:"status_msg"`
}

func NewBaseResponse

func NewBaseResponse() *BaseResponse

func (*BaseResponse) GetStatusCode

func (p *BaseResponse) GetStatusCode() (v int32)

func (*BaseResponse) GetStatusMsg

func (p *BaseResponse) GetStatusMsg() (v string)

func (*BaseResponse) Read

func (p *BaseResponse) Read(iprot thrift.TProtocol) (err error)

func (*BaseResponse) ReadField1

func (p *BaseResponse) ReadField1(iprot thrift.TProtocol) error

func (*BaseResponse) ReadField2

func (p *BaseResponse) ReadField2(iprot thrift.TProtocol) error

func (*BaseResponse) String

func (p *BaseResponse) String() string

func (*BaseResponse) Write

func (p *BaseResponse) Write(oprot thrift.TProtocol) (err error)

type Gift

type Gift struct {
	ID      int64  `thrift:"id,1" gorm:"primaryKey;autoIncrement:false" form:"id" json:"id" query:"id"`
	LiveID  int64  `thrift:"live_id,2,required" gorm:"index" form:"live_id,required" json:"live_id,required" query:"live_id,required"`
	Gift    string `thrift:"gift,3,required" form:"gift,required" json:"gift,required" query:"gift,required"`
	Count   int32  `thrift:"count,4,required" form:"count,required" json:"count,required" query:"count,required"`
	EndTime int64  `thrift:"end_time,5,required" form:"end_time,required" json:"end_time,required" query:"end_time,required"`
}

func NewGift

func NewGift() *Gift

func (*Gift) GetCount

func (p *Gift) GetCount() (v int32)

func (*Gift) GetEndTime

func (p *Gift) GetEndTime() (v int64)

func (*Gift) GetGift

func (p *Gift) GetGift() (v string)

func (*Gift) GetID

func (p *Gift) GetID() (v int64)

func (*Gift) GetLiveID

func (p *Gift) GetLiveID() (v int64)

func (*Gift) Read

func (p *Gift) Read(iprot thrift.TProtocol) (err error)

func (*Gift) ReadField1

func (p *Gift) ReadField1(iprot thrift.TProtocol) error

func (*Gift) ReadField2

func (p *Gift) ReadField2(iprot thrift.TProtocol) error

func (*Gift) ReadField3

func (p *Gift) ReadField3(iprot thrift.TProtocol) error

func (*Gift) ReadField4

func (p *Gift) ReadField4(iprot thrift.TProtocol) error

func (*Gift) ReadField5

func (p *Gift) ReadField5(iprot thrift.TProtocol) error

func (*Gift) String

func (p *Gift) String() string

func (*Gift) Write

func (p *Gift) Write(oprot thrift.TProtocol) (err error)

type LiveMessage

type LiveMessage struct {
	Type     int8   `thrift:"type,1" form:"type" json:"type" query:"type"`
	ID       int64  `thrift:"id,2" form:"id" json:"id" query:"id"`
	UserID   int64  `thrift:"user_id,3" form:"user_id" json:"user_id" query:"user_id"`
	LiveID   int64  `thrift:"live_id,4" form:"live_id" json:"live_id" query:"live_id"`
	LiveTime int64  `thrift:"live_time,5" form:"live_time" json:"live_time" query:"live_time"`
	SendTime int64  `thrift:"send_time,6" form:"send_time" json:"send_time" query:"send_time"`
	Content  string `thrift:"content,7" form:"content" json:"content" query:"content"`
}

func NewLiveMessage

func NewLiveMessage() *LiveMessage

func (*LiveMessage) GetContent

func (p *LiveMessage) GetContent() (v string)

func (*LiveMessage) GetID

func (p *LiveMessage) GetID() (v int64)

func (*LiveMessage) GetLiveID

func (p *LiveMessage) GetLiveID() (v int64)

func (*LiveMessage) GetLiveTime

func (p *LiveMessage) GetLiveTime() (v int64)

func (*LiveMessage) GetSendTime

func (p *LiveMessage) GetSendTime() (v int64)

func (*LiveMessage) GetType

func (p *LiveMessage) GetType() (v int8)

func (*LiveMessage) GetUserID

func (p *LiveMessage) GetUserID() (v int64)

func (*LiveMessage) Read

func (p *LiveMessage) Read(iprot thrift.TProtocol) (err error)

func (*LiveMessage) ReadField1

func (p *LiveMessage) ReadField1(iprot thrift.TProtocol) error

func (*LiveMessage) ReadField2

func (p *LiveMessage) ReadField2(iprot thrift.TProtocol) error

func (*LiveMessage) ReadField3

func (p *LiveMessage) ReadField3(iprot thrift.TProtocol) error

func (*LiveMessage) ReadField4

func (p *LiveMessage) ReadField4(iprot thrift.TProtocol) error

func (*LiveMessage) ReadField5

func (p *LiveMessage) ReadField5(iprot thrift.TProtocol) error

func (*LiveMessage) ReadField6

func (p *LiveMessage) ReadField6(iprot thrift.TProtocol) error

func (*LiveMessage) ReadField7

func (p *LiveMessage) ReadField7(iprot thrift.TProtocol) error

func (*LiveMessage) String

func (p *LiveMessage) String() string

func (*LiveMessage) Write

func (p *LiveMessage) Write(oprot thrift.TProtocol) (err error)

type Room

type Room struct {
	LiveID       int64  `thrift:"live_id,1" gorm:"type:bigint;primaryKey;autoIncrement:false" form:"live_id" json:"live_id" query:"live_id"`
	RoomName     string `thrift:"room_name,2" form:"room_name" json:"room_name" query:"room_name"`
	Introduction string `thrift:"introduction,3" form:"introduction" json:"introduction" query:"introduction"`
	Owner        int64  `thrift:"owner,4" form:"owner" json:"owner" query:"owner"`
	Cover        string `thrift:"cover,5" form:"cover" json:"cover" query:"cover"`
	StartTime    int64  `thrift:"start_time,6" form:"start_time" json:"start_time" query:"start_time"`
	IsLive       bool   `thrift:"is_live,7" form:"is_live" json:"is_live" query:"is_live"`
}

func NewRoom

func NewRoom() *Room

func (*Room) GetCover

func (p *Room) GetCover() (v string)

func (*Room) GetIntroduction

func (p *Room) GetIntroduction() (v string)

func (*Room) GetIsLive

func (p *Room) GetIsLive() (v bool)

func (*Room) GetLiveID

func (p *Room) GetLiveID() (v int64)

func (*Room) GetOwner

func (p *Room) GetOwner() (v int64)

func (*Room) GetRoomName

func (p *Room) GetRoomName() (v string)

func (*Room) GetStartTime

func (p *Room) GetStartTime() (v int64)

func (*Room) Read

func (p *Room) Read(iprot thrift.TProtocol) (err error)

func (*Room) ReadField1

func (p *Room) ReadField1(iprot thrift.TProtocol) error

func (*Room) ReadField2

func (p *Room) ReadField2(iprot thrift.TProtocol) error

func (*Room) ReadField3

func (p *Room) ReadField3(iprot thrift.TProtocol) error

func (*Room) ReadField4

func (p *Room) ReadField4(iprot thrift.TProtocol) error

func (*Room) ReadField5

func (p *Room) ReadField5(iprot thrift.TProtocol) error

func (*Room) ReadField6

func (p *Room) ReadField6(iprot thrift.TProtocol) error

func (*Room) ReadField7

func (p *Room) ReadField7(iprot thrift.TProtocol) error

func (*Room) String

func (p *Room) String() string

func (*Room) Write

func (p *Room) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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