package
Version:
v0.0.0-...-7fff55e
Opens a new window with list of versions in this module.
Published: May 15, 2024
License: MIT
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 BaseResponse struct {
Success bool `json:"success"`
Code int `json:"code"`
Message string `json:"message"`
}
type LoginRequest struct {
Username string `json:"username" db:"username"`
Password string `json:"password" db:"password"`
}
type LoginResponseData struct {
AccessToken string `json:"accessToken"`
RefreshToken string `json:"refreshToken"`
}
type RegisterRequest struct {
Username string `json:"username" db:"username"`
Password string `json:"password" db:"password"`
Email string `json:"email" db:"email"`
Image string `json:"image" db:"image"`
}
type RegisterResponseData struct {
Id int `json:"id" db:"id"`
Username string `json:"username" db:"username"`
Email string `json:"email" db:"email"`
Image string `json:"image" db:"image"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.