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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecPoolConf

type RecPoolConf struct {
	ID          int64   `json:"id"`
	Name        string  `json:"name"`
	Type        int64   `json:"type"`
	Rule        string  `json:"rules"`
	Priority    int64   `json:"priority"`
	Percent     float64 `json:"percent"`
	TruePercent float64 `json:"true_percent"`
	ModuleType  int64   `json:"module_type"`
	Position    int64   `json:"position"`
}

RecPoolConf 投放配置

func NewRecPoolConf

func NewRecPoolConf() *RecPoolConf

NewRecPoolConf 创建

type RecPoolSlice

type RecPoolSlice []*RecPoolConf

RecPoolSlice 配置

func (RecPoolSlice) Len

func (R RecPoolSlice) Len() int

Len 返回长度

func (RecPoolSlice) Less

func (R RecPoolSlice) Less(i, j int) bool

Less 根据优先级降序排序

func (RecPoolSlice) Swap

func (R RecPoolSlice) Swap(i, j int)

Swap 交换数据

type RecRoomInfo

type RecRoomInfo struct {
	Uid             int64  `json:"uid"`
	Title           string `json:"title"`
	PopularityCount int64  `json:"popularity_count"`
	KeyFrame        string `josn:"Keyframe"`
	Cover           string `josn:"cover"`
	ParentAreaID    int64  `json:"parent_area_id"`
	ParentAreaName  string `json:"parent_area_name"`
	AreaID          int64  `json:"area_id"`
	AreaName        string `josn:"area_name"`
}

RecRoomInfo 房间信息

func NewRecRoomInfo

func NewRecRoomInfo() *RecRoomInfo

NewRecRoomInfo 创建

Jump to

Keyboard shortcuts

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