web

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChCard

type ChCard struct {
	ID         int64  `json:"-"`
	Title      string `json:"-"`
	ChannelID  int64  `json:"-"`
	Type       string `json:"-"`
	Value      int64  `json:"-"`
	Reason     string `json:"-"`
	ReasonType int8   `json:"-"`
	Pos        int    `json:"-"`
	FromType   string `json:"-"`
}

ChCard channel card .

type Channel

type Channel struct {
	*tagmdl.Tag
	Archives []*api.Arc `json:"archives"`
}

Channel .

type Img

type Img struct {
	URL    string `json:"url"`
	Height int    `json:"height"`
	Width  int    `json:"width"`
}

Img img .

type Mi

type Mi struct {
	ID               int64       `json:"id"`
	Name             string      `json:"name"`
	Op               string      `json:"op"`
	AlternativeNames string      `json:"alternative_names"`
	Cover            Img         `json:"cover"`
	Thumbnail        Img         `json:"thumbnail"`
	Description      string      `json:"description"`
	Tags             string      `json:"tags"`
	CreateTime       string      `json:"create_time"`
	ModifyTime       string      `json:"modify_time"`
	PublishTime      string      `json:"publish_time"`
	Author           string      `json:"author"`
	Category         string      `json:"category"`
	Rating           float32     `json:"rating"`
	PlayCount        int32       `json:"play_count"`
	PlayCountMonth   int         `json:"play_count_month"`
	PlayCountWeek    int         `json:"play_count_week"`
	PlayLength       int64       `json:"play_length"`
	Language         string      `json:"language"`
	Images           Img         `json:"images"`
	Weburl           string      `json:"weburl"`
	Appurl           string      `json:"appurl"`
	MinVersion       int         `json:"min_version"`
	Pages            []*PageInfo `json:"pages"`
	CommentCount     int32       `json:"comment_count"`
	LikeCount        int32       `json:"like_count"`
}

Mi mi common .

func (*Mi) FromArchive

func (f *Mi) FromArchive(a *api.Arc, p []*api.Page, op, source string)

FromArchive .

func (*Mi) UgcFullDeal

func (f *Mi) UgcFullDeal()

UgcFullDeal .

func (*Mi) UgcIncreDeal

func (f *Mi) UgcIncreDeal()

UgcIncreDeal .

type PageInfo

type PageInfo struct {
	Cid  int64 `json:"cid"`
	Page int32 `json:"page"`
}

PageInfo page3 .

type Params

type Params struct {
	Route string `form:"route" validate:"required"`
	Mode  string `form:"mode" validate:"required"`
	JobID string `form:"job_id"`
}

Params .

type SearchAids

type SearchAids struct {
	Aid    int64  `json:"aid"`
	Action string `json:"action"`
}

SearchAids return aids .

Jump to

Keyboard shortcuts

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