assist

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

View Source
var (
	// ActEnum action enum
	ActEnum = map[int8]map[int8]string{
		1: {
			1: "删除评论",
			2: "隐藏评论",
		},
		2: {
			1: "删除弹幕",
			2: "屏蔽弹幕",
			3: "保护弹幕",
			4: "拉黑用户",
			5: "移动弹幕到字幕池",
			6: "忽略字幕池的弹幕",
			7: "取消拉黑用户",
		},
	}
)

Functions

This section is empty.

Types

type Assist

type Assist struct {
	AssistMid    int64                 `json:"assist_mid"`
	Banned       int8                  `json:"banned"`
	AssistAvatar string                `json:"assist_avatar"`
	AssistName   string                `json:"assist_name"`
	Rights       *Rights               `json:"rights"`
	CTime        time.Time             `json:"ctime"`
	MTime        time.Time             `json:"mtime"`
	Total        map[int8]map[int8]int `json:"total"`
}

Assist is Assists model.

type AssistLog

type AssistLog struct {
	ID           int64     `json:"id"`
	Mid          int64     `json:"mid"`
	AssistMid    int64     `json:"assist_mid"`
	AssistAvatar string    `json:"assist_avatar"`
	AssistName   string    `json:"assist_name"`
	Type         int8      `json:"type"`
	Action       int8      `json:"action"`
	SubjectID    int64     `json:"subject_id"`
	ObjectID     string    `json:"object_id"`
	Detail       string    `json:"detail"`
	State        int8      `json:"state"`
	CTime        time.Time `json:"ctime"`
}

AssistLog is single record for assist done

type LiveAssist

type LiveAssist struct {
	AssistMid int64     `json:"uid"`
	RoomID    int64     `json:"roomid"`
	CTime     time.Time `json:"-"`
	Datetime  string    `json:"ctime"`
}

LiveAssist is single record for assist done

type Rights

type Rights struct {
	Main int8 `json:"main"`
	Live int8 `json:"live"`
}

Rights main and live status

Jump to

Keyboard shortcuts

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