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

View Source
const (
	// BangumiTyp 番剧
	BangumiTyp = 1
	// ComicTyp 漫画
	ComicTyp = 2
	// ArchiveTyp 稿件
	ArchiveTyp = 3
	// PlaylistTyp 播单
	PlaylistTyp = 4
	// ArchiveMsgTyp .
	ArchiveMsgTyp = "archive"
	// BangumiMsgTyp .
	BangumiMsgTyp = "bangumi_share"
	// ComicMsgTyp .
	ComicMsgTyp = "comic_share"
	// PlaylistMsgTyp .
	PlaylistMsgTyp = "playlist"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveShare

type ArchiveShare struct {
	Type  string `json:"type"`
	ID    int64  `json:"id"`
	Count int    `json:"count"`
	Ts    int64  `json:"timestamp"`
}

ArchiveShare .

type MIDShare

type MIDShare struct {
	OID  int64 `json:"oid"`
	MID  int64 `json:"mid"`
	TP   int   `json:"tp"`
	Time int64 `json:"time"`
}

MIDShare .

type Share

type Share struct {
	OID   int64 `json:"oid"`
	Tp    int   `json:"tp"`
	Count int64 `json:"count"`
}

Share share item

type ShareParams

type ShareParams struct {
	OID int64  `json:"oid" form:"oid" validate:"required,gt=0"`
	MID int64  `json:"mid" form:"mid" validate:"required"`
	TP  int    `json:"tp" form:"tp" validate:"required,gt=0"`
	IP  string `json:"ip"`
}

ShareParams .

Jump to

Keyboard shortcuts

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