model

package
v4.0.0-...-755bc99 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentInfo

type AgentInfo struct {
	Platform  string `json:"platform"`
	UserAgent string `json:"user_agent"`
}

type LoginReq

type LoginReq struct {
	AgentInfo AgentInfo `json:"agent_info"`
	Name      string    `json:"name"`
	Passwd    string    `json:"passwd"`
}

func (*LoginReq) Bind

func (r *LoginReq) Bind(c *gin.Context) mir.Error

type LoginResp

type LoginResp struct {
	UserInfo
	ServerInfo ServerInfo `json:"server_info"`
	JwtToken   string     `json:"jwt_token"`
}

func (*LoginResp) Render

func (r *LoginResp) Render(c *gin.Context)

type ServerInfo

type ServerInfo struct {
	ApiVer string `json:"api_ver"`
}

type Tweet

type Tweet struct {
	Type    string `json:"type"`
	Content string `json:"content"`
}

type TweetsReq

type TweetsReq struct {
	Date string `json:"date"`
}

type TweetsResp

type TweetsResp struct {
	Tweets []Tweet `json:"tweets"`
	Total  uint32  `json:"total"`
}

type UserInfo

type UserInfo struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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