mediatypes

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmoteDetail

type EmoteDetail struct {
	FileType string `json:"fileType"`
	GroupID  string `json:"groupID"`
	// contains filtered or unexported fields
}

emote

type EmoteItem

type EmoteItem struct {
	NetdiskID string `json:"netdiskID"`
	FileType  string `json:"fileType"`
	GroupID   string `json:"groupID"`
}

emote

type ListEmoteItem

type ListEmoteItem struct {
	Emotes []EmoteDetail `json:"emotes"`
	Total  int           `json:"total"`
}

emote

type MediaBaseInfo

type MediaBaseInfo struct {
	Size     int64  `json:"size"`
	MimeType string `json:"mimetype"`
	W        int    `json:"w"`
	H        int    `json:"h"`
}

emote

type MediaContentInfo

type MediaContentInfo struct {
	Body         string        `json:"body"`
	Info         MediaBaseInfo `json:"info"`
	Url          string        `json:"url"`
	MsgType      string        `json:"msgtype"`
	IsEmote      bool          `json:"isemote"`
	SrcNetdiskID string        `json:"srcnetdiskid"`
}

emote

type MediaID

type MediaID string

MediaID is a string representing the unique identifier for a file (could be a hash but does not have to be)

type NetDiskResponse

type NetDiskResponse struct {
	NetDiskID string `json:"netdiskID,omitempty"`
	ResouceID string `json:"resourceID,omitempty"`
}

type UploadEmoteResp

type UploadEmoteResp struct {
	Emotes    []EmoteItem `json:"emotes"`
	NetdiskID string      `json:"netdiskID"` //only use for old
	FileType  string      `json:"fileType"`
	Total     int         `json:"total"`
	GroupID   string      `json:"groupID"`
	Finish    bool        `json:"finish"`
	WaitId    string      `json:"waitId"`
}

emote

type UploadError

type UploadError struct {
	Error string `json:"error,omitempty"`
}

type UploadResponse

type UploadResponse struct {
	ContentURI string `json:"content_uri,omitempty"`
}

Jump to

Keyboard shortcuts

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