model

package
v0.0.0-...-82df24b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MemberSecUIDAva    = MemberSecUID("MS4wLjABAAAAxOXMMwlShWjp4DONMwfEEfloRYiC1rXwQ64eydoZ0ORPFVGysZEd4zMt8AjsTbyt")
	MemberSecUIDBella  = MemberSecUID("MS4wLjABAAAAlpnJ0bXVDV6BNgbHUYVWnnIagRqeeZyNyXB84JXTqAS5tgGjAtw0ZZkv0KSHYyhP")
	MemberSecUIDCarol  = MemberSecUID("MS4wLjABAAAAuZHC7vwqRhPzdeTb24HS7So91u9ucl9c8JjpOS2CPK-9Kg2D32Sj7-mZYvUCJCya")
	MemberSecUIDDiana  = MemberSecUID("MS4wLjABAAAA5ZrIrbgva_HMeHuNn64goOD2XYnk4ItSypgRHlbSh1c")
	MemberSecUIDEileen = MemberSecUID("MS4wLjABAAAAxCiIYlaaKaMz_J1QaIAmHGgc3bTerIpgTzZjm0na8w5t2KTPrCz4bm_5M5EMPy92")
	MemberSecUIDAcao   = MemberSecUID("MS4wLjABAAAAflgvVQ5O1K4RfgUu3k0A2erAZSK7RsdiqPAvxcObn93x2vk4SKk1eUb6l_D4MX-n")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateComment

type CreateComment struct {
	Cid           string          `json:"cid"`
	VideoID       string          `json:"video_id"`
	Text          string          `json:"text"`
	TextClean     string          `json:"text_clean"`
	TextExtra     json.RawMessage `json:"text_extra"`
	UserNickname  string          `json:"user_nickname"`
	UserAvatarURI string          `json:"user_avatar_uri"`
	UserSecUID    string          `json:"user_sec_uid"`
	CreatedAt     time.Time       `json:"created_at"`
}

type CreateVideo

type CreateVideo struct {
	ID               string       `json:"id"`
	VID              string       `json:"vid"`
	AuthorSecUID     MemberSecUID `json:"author_sec_uid"`
	Description      string       `json:"description"`
	TextExtra        []string     `json:"text_extra"`
	OriginCoverURLs  []string     `json:"origin_cover_urls"`
	DynamicCoverURLs []string     `json:"dynamic_cover_urls"`
	IsDynamicCover   bool         `json:"is_dynamic_cover"`
	VideoHeight      int          `json:"video_height"`
	VideoWidth       int          `json:"video_width"`
	VideoDuration    int64        `json:"video_duration"`
	VideoRatio       string       `json:"video_ratio"`
	VideoURLs        []string     `json:"video_urls"`
	VideoCDNURL      string       `json:"video_cdn_url"`

	Statistic
}

type MemberSecUID

type MemberSecUID string

type ReportType

type ReportType string
const (
	ReportTypeUpdateMember    ReportType = "update_member"
	ReportTypeCreateVideo     ReportType = "create_video"
	ReportTypeUpdateVideoMeta ReportType = "update_video_meta"
	ReportTypeComment         ReportType = "comment"
	ReportTypeFacePoint       ReportType = "face_point"
)

type Statistic

type Statistic struct {
	Share   int64 `db:"share" json:"share"`
	Forward int64 `db:"forward" json:"forward"`
	Digg    int64 `db:"digg" json:"digg"`
	Play    int64 `db:"play" json:"play"`
	Comment int64 `db:"comment" json:"comment"`
}

type UpdateFacePoint

type UpdateFacePoint struct {
	ID          string          `json:"id"`
	FacePoints  json.RawMessage `json:"face_points"`
	CoverWidth  int             `json:"cover_width"`
	CoverHeight int             `json:"cover_height"`
}

type UpdateMember

type UpdateMember struct {
	SecUID    MemberSecUID `json:"sec_uid"`
	UID       string       `json:"uid"`
	UniqueID  string       `json:"unique_id"`
	ShortUID  string       `json:"short_uid"`
	Name      string       `json:"name"`
	AvatarURL string       `json:"avatar_url"`
	Signature string       `json:"signature"`
}

type UpdateVideoMeta

type UpdateVideoMeta struct {
	ID               string    `json:"id"`
	VID              string    `json:"vid"`
	OriginCoverURLs  []string  `json:"origin_cover_urls"`
	DynamicCoverURLs []string  `json:"dynamic_cover_urls"`
	IsDynamicCover   bool      `json:"is_dynamic_cover"`
	CreatedAt        time.Time `json:"created_at"`

	Statistic
}

Jump to

Keyboard shortcuts

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