response

package
v0.0.0-...-9db7971 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonA

type CommonA struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Code    int    `json:"code"`
}

type GetUserA

type GetUserA struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Code    int    `json:"code"`
	Name    string `json:"name"`
}

type LoginA

type LoginA struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Token   string `json:"token"`
	ID      uint64 `json:"id"`
}

type LoginQ

type LoginQ struct {
	Name     string `json:"name" binding:"min=3,max=100,required"`
	Password string `json:"password" binding:"gte=6,required"`
}

type RegisterQ

type RegisterQ struct {
	Name     string `json:"name" binding:"min=3,max=100,required"`
	Password string `json:"password" binding:"gte=6,required"`
}

type UploadFileA

type UploadFileA struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Code    int    `json:"code"`
	Path    string `json:"path"`
}

type UploadFileQ

type UploadFileQ struct {
	Name string                `json:"name" form:"name" `
	File *multipart.FileHeader `json:"file" form:"file" swaggerignore:"true" `
}

Jump to

Keyboard shortcuts

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