Discover Packages
github.com/artfoxe6/quick-gin
internal
app
request
package
Version:
v0.0.0-...-89a8f9d
Opens a new window with list of versions in this module.
Published: Apr 27, 2025
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
Documentation
¶
type AuthorUpsert struct {
Id *uint `json:"id"`
Name *string `json:"name"`
}
type BaseUpsert struct {
Id *uint `json:"id"`
Name *string `json:"name"`
}
type CategoryUpsert struct {
Id *uint `json:"id"`
Name *string `json:"name"`
}
type Code struct {
Email string `json:"email" binding:"required"`
Type int `json:"type"`
}
type ContactUpsert struct {
Id *uint `json:"id"`
Email *string `json:"email"`
Message *string `json:"message"`
Name *string `json:"name"`
}
type DeleteId struct {
Id uint `json:"id"`
}
type NewsUpsert struct {
Id *uint `json:"id"`
Title *string `json:"title"`
Content *string `json:"content"`
Source *string `json:"source"`
Status *int `json:"status"`
Slug *string `json:"slug"`
Summary *string `json:"summary"`
ImageUrl *string `json:"image_url"`
VideoUrl *string `json:"video_url"`
AudioUrl *string `json:"audio_url"`
TypeId *int `json:"type_id"`
CategoryIds *[]uint `json:"category_ids"`
TagIds *[]uint `json:"tag_ids"`
AuthorId *uint `json:"author_id"`
IsFeatured *bool `json:"is_featured"`
}
type NormalSearch struct {
Offset int `form:"offset,default=0"`
Limit int `form:"limit,default=15"`
Sort int `form:"sort,default=0"`
Keyword *string `form:"keyword"`
Ids *string `form:"ids"`
Status *int `form:"status"`
}
type TagUpsert struct {
Id *uint `json:"id"`
Name *string `json:"name"`
}
type UpdatePassword struct {
Email string `json:"email" binding:"required"`
Password string `json:"password" binding:"required"`
Code string `json:"code" binding:"required"`
}
type Upload struct {
Type string `form:"type" binding:"required"`
File *multipart .FileHeader `form:"file" binding:"required_without=Raw"`
Raw string `form:"raw"`
}
type UserCreate struct {
Avatar string `json:"avatar"`
Name string `json:"name"`
Password string `json:"password" binding:"required"`
Email string `json:"email" binding:"required"`
Code string `json:"code" binding:"required"`
}
type UserLogin struct {
Email string `json:"email" binding:"required"`
Password string `json:"password" binding:"required"`
Role string `json:"role"`
}
type UserUpsert struct {
Id *uint `json:"id"`
Avatar *string `json:"avatar"`
Name *string `json:"name"`
Role *string `json:"role"`
Password *string `json:"pass"`
Email *string `json:"email"`
LoginAt *int64 `json:"login_at"`
LastIp *string `json:"last_ip"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.