models

package
v0.0.0-...-ab065fd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	Token string `json:"token" validate:"required"`
}

type AuthResponse

type AuthResponse struct {
	Code int32  `json:"code"`
	UID  string `json:"uid"`
}

type GetRequest

type GetRequest struct {
	Uid string `json:"uid"`
}

type GetRespond

type GetRespond struct {
	Code     int32  `json:"code"`
	Username string `json:"username"`
	Age      int32  `json:"age"`
	Addr     string `json:"addr"`
}

type ListRequest

type ListRequest struct {
	Page     int32  `json:"page"`
	PageSize int32  `json:"pageSize"`
	Username string `json:"username"`
}

type ListRespond

type ListRespond struct {
	Code     int32  `json:"code"`
	Page     int32  `json:"page"`
	PageSize int32  `json:"pageSize"`
	Count    int32  `json:"count"`
	Users    []User `json:"users"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type LoginRespond

type LoginRespond struct {
	Code  int32  `json:"code"`
	Token string `json:"token"`
}

type RegisterRequest

type RegisterRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Age      int32  `json:"age"`
	Addr     string `json:"addr"`
}

type RegisterRespond

type RegisterRespond struct {
	Code int32  `json:"code"`
	Uid  string `json:"uid"`
}

type User

type User struct {
	Username string `json:"username"`
	Age      int32  `json:"age"`
	Addr     string `json:"addr"`
}

Jump to

Keyboard shortcuts

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