package
Version:
v0.0.0-...-9db7971
Opens a new window with list of versions in this module.
Published: Sep 1, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CommonA struct {
Success bool `json:"success"`
Message string `json:"message"`
Code int `json:"code"`
}
type GetUserA struct {
Success bool `json:"success"`
Message string `json:"message"`
Code int `json:"code"`
Name string `json:"name"`
}
type LoginA struct {
Success bool `json:"success"`
Message string `json:"message"`
Token string `json:"token"`
ID uint64 `json:"id"`
}
type LoginQ struct {
Name string `json:"name" binding:"min=3,max=100,required"`
Password string `json:"password" binding:"gte=6,required"`
}
type RegisterQ struct {
Name string `json:"name" binding:"min=3,max=100,required"`
Password string `json:"password" binding:"gte=6,required"`
}
type UploadFileA struct {
Success bool `json:"success"`
Message string `json:"message"`
Code int `json:"code"`
Path string `json:"path"`
}
type UploadFileQ struct {
Name string `json:"name" form:"name" `
File *multipart.FileHeader `json:"file" form:"file" swaggerignore:"true" `
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.