package
Version:
v0.0.0-...-a60134b
Opens a new window with list of versions in this module.
Published: Oct 25, 2024
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 CreateRequest struct {
Username string `json:"username" binding:"required" example:"johndoe"`
Email string `json:"email" binding:"required,email" example:"john@example.com"`
Password string `json:"password" binding:"required" example:"secretpassword123"`
}
type ListResponse struct {
Users []Response `json:"users"`
TotalCount int64 `json:"total_count" example:"100"`
Page int `json:"page" example:"1"`
PerPage int `json:"per_page" example:"10"`
}
type Response struct {
ID uint `json:"id" example:"1"`
Username string `json:"username" example:"johndoe"`
Email string `json:"email" example:"john@example.com"`
CreatedAt time.Time `json:"created_at" example:"2024-10-26T12:34:56Z"`
UpdatedAt time.Time `json:"updated_at" example:"2024-10-26T12:34:56Z"`
}
type UpdateRequest struct {
Username string `json:"username" example:"johndoe"`
Email string `json:"email" binding:"email" example:"john@example.com"`
Password string `json:"password" example:"newpassword123"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.