model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApRoomNotifyInfo

type ApRoomNotifyInfo struct {
	Action string          `json:"action"`
	Table  string          `json:"table"`
	New    json.RawMessage `json:"new"`
	Old    json.RawMessage `json:"old"`
}

NotifyInfo notify info.

type AttentionNotifyInfo

type AttentionNotifyInfo struct {
	Uid     int64   `json:"uid"`
	UpUid   int64   `json:"up_uid"`
	ExtInfo *ExInfo `json:"ext_info"`
}

NotifyInfo notify info.

type DataMap

type DataMap struct {
	Action string
	Table  string
	New    *TableField
	Old    *TableField
}

type ExInfo

type ExInfo struct {
	UpUidFans int `json:"up_uid_fans"`
}

type LiveDatabus

type LiveDatabus struct {
	Topic      string `json:"topic"`
	MsgId      string `json:"msg_id"`
	MsgContent string `json:"msg_content"`
}

type LiveDatabusAttention

type LiveDatabusAttention struct {
	Topic      string               `json:"topic"`
	MsgId      string               `json:"msg_id"`
	MsgContent *AttentionNotifyInfo `json:"msg_content"`
}

type TableField

type TableField struct {
	RoomId         int    `json:"roomid"`
	ShortId        int    `json:"short_id"`
	Uid            int64  `json:"uid"`
	UName          string `json:"uname"`
	Area           int    `json:"area"`
	Title          string `json:"title"`
	Tag            string `json:"tags"`
	MTime          string `json:"mtime"`
	CTime          string `json:"ctime"`
	TryTime        string `json:"try_time"`
	Cover          string `json:"cover"`
	UserCover      string `json:"user_cover"`
	LockStatus     string `json:"lock_status"`
	HiddenStatus   string `json:"hidden_status"`
	Attentions     int    `json:"attentions"`
	Online         int    `json:"online"`
	LiveTime       string `json:"live_time"`
	AreaV2Id       int    `json:"area_v2_id"`
	AreaV2Name     string `json:"area_v2_name"`
	AreaV2ParentId int    `json:"area_v2_parent_id"`
	Virtual        int    `json:"virtual"`
	RoundStatus    int    `json:"round_status"`
	OnFlag         int    `json:"on_flag"`
}

type UnameNotifyInfo

type UnameNotifyInfo struct {
	Uid            int64  `json:"uid"`
	Uname          string `json:"uname"`
	Identification int    `json:"identification"`
}

Jump to

Keyboard shortcuts

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