def

package
v0.0.0-...-3d7ecd4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Danmu

type Danmu struct {
	Time  float64 `json:"time"`
	Type  int     `json:"type"`
	Color int     `json:"color"`
	Uid   int     `json:"uid"`
	Text  string  `json:"text"`
}

type DanmuGet

type DanmuGet struct {
	Time  float64 `json:"time"`
	Type  int     `json:"type"`
	Color int     `json:"color"`
	Uid   int     `json:"uid"`
	Text  string  `json:"text"`
}

func (*DanmuGet) MarshalJSON

func (d *DanmuGet) MarshalJSON() (data []byte, err error)

type Post

type Post struct {
	Pid      int    `json:"pid,omitempty"`
	Title    string `json:"title"`
	Content  string `json:"content"`
	Sort     string `json:"sort"`
	Tag      string `json:"tag,omitempty"`
	Time     string `json:"time"`
	Uid      int    `json:"uid,omitempty"`
	Username string `json:"username,omitempty"`
}

type User

type User struct {
	Recaptcha  string `json:"recaptcha,omitempty"`
	Uid        int    `json:"uid,omitempty"`
	Username   string `json:"username,omitempty"`
	Password   string `json:"password"`
	Email      string `json:"email"`
	Experience int    `json:"experience,omitempty"`
}

Jump to

Keyboard shortcuts

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