common

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

View Source
const (
	//CardPgc .
	CardPgc = "pgc"
	//CardAv card av
	CardAv = "av"
	//CardUp card uper
	CardUp = "up"
	//CardChannelTab .
	CardChannelTab = "channel_tab"
	//CardEventTopic 事件专题卡片
	CardEventTopic = "event_topic"
	//CardPgcsRcmd pgc聚集卡
	CardPgcsRcmd = "pgcs_rcmd"
	//CardUpRcmdNew 热门新星卡片
	CardUpRcmdNew = "up_rcmd_new"
	//CardSearchWeb 搜索web卡片
	CardSearchWeb = "search_web"
)
View Source
const (
	//NotDeleted db not deleted
	NotDeleted = 0
	//Deleted db deleted
	Deleted = 1
	//Verify 待审核
	Verify = 1
	//Pass 已通过
	Pass = 2
	//Rejecte 已拒绝
	Rejecte = 3
	//Valid 已生效
	Valid = 4
	//InValid 已失效
	InValid = 5
	//StatusOnline status online
	StatusOnline = 1
	//StatusDownline status downline
	StatusDownline = 0
	//OptionOnline option online
	OptionOnline = "online"
	//OptionHidden option downline
	OptionHidden = "hidden"
	//OptionPass option pass
	OptionPass = "pass"
	//OptionReject option reject
	OptionReject = "reject"
)
View Source
const (
	//BusinessID action log business ID
	BusinessID = 204
	//LogPopularStars popular new start card log
	LogPopularStars = 0
	//LogChannelTab channel tab log
	LogChannelTab = 1
	//LogEventTopic popular event topic log
	LogEventTopic = 2
	//LogSWEBCard search web card log
	LogSWEBCard = 3
	//LogSWEB search web log
	LogSWEB = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CardPreview

type CardPreview struct {
	Title string `json:"title"`
}

CardPreview card preview

type LogManager

type LogManager struct {
	ID        int    `json:"id"`
	OID       int    `json:"oid"`
	Uname     string `json:"uname"`
	UID       int    `json:"uid"`
	Type      int    `json:"module"`
	ExtraData string `json:"content"`
	Action    string `json:"action"`
	CTime     string `json:"ctime"`
}

LogManager .

type LogManagers

type LogManagers struct {
	Item []*LogManager `json:"item"`
	Page ManagerPage   `json:"pager"`
}

LogManagers .

type LogSearch

type LogSearch struct {
	ID        int    `json:"id"`
	OID       int    `json:"oid"`
	Uname     string `json:"uname"`
	UID       int    `json:"uid"`
	Type      int    `json:"type"`
	ExtraData string `json:"extra_data"`
	Action    string `json:"action"`
	CTime     string `json:"ctime"`
}

LogSearch .

type ManagerPage

type ManagerPage struct {
	CurrentPage int `json:"current_page"`
	TotalItems  int `json:"total_items"`
	PageSize    int `json:"page_size"`
}

ManagerPage .

type Page

type Page struct {
	Num   int `json:"num"`
	Size  int `json:"size"`
	Total int `json:"total"`
}

Page pager

Jump to

Keyboard shortcuts

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