package
Version:
v0.0.0-...-ab065fd
Opens a new window with list of versions in this module.
Published: Apr 30, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthRequest struct {
Token string `json:"token" validate:"required"`
}
type AuthResponse struct {
Code int32 `json:"code"`
UID string `json:"uid"`
}
type GetRequest struct {
Uid string `json:"uid"`
}
type GetRespond struct {
Code int32 `json:"code"`
Username string `json:"username"`
Age int32 `json:"age"`
Addr string `json:"addr"`
}
type ListRequest struct {
Page int32 `json:"page"`
PageSize int32 `json:"pageSize"`
Username string `json:"username"`
}
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 struct {
Username string `json:"username" validate:"required"`
Password string `json:"password" validate:"required"`
}
type LoginRespond struct {
Code int32 `json:"code"`
Token string `json:"token"`
}
type RegisterRequest struct {
Username string `json:"username"`
Password string `json:"password"`
Age int32 `json:"age"`
Addr string `json:"addr"`
}
type RegisterRespond struct {
Code int32 `json:"code"`
Uid string `json:"uid"`
}
type User struct {
Username string `json:"username"`
Age int32 `json:"age"`
Addr string `json:"addr"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.