Discover Packages
github.com/Dubjay18/green-lit
dto
package
Version:
v0.0.0-...-19c4467
Opens a new window with list of versions in this module.
Published: Apr 27, 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
Documentation
¶
type ArticleResponse struct {
ID string `json:"article_id" db:"article_id"`
Title string `json:"title" db:"title"`
Content string `json:"content" db:"content"`
PublishedAt string `json:"published_at" db:"published_at"`
Author int `json:"author" db:"author_id"`
}
type LoginRequest struct {
Email string `json:"email"db:"email"`
Password string `json:"password"`
}
type LoginResponse struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token,omitempty"`
}
type NewArticleRequest struct {
Title string `json:"title"db:"title""`
Content string `json:"content"db:"content"`
Author int `json:"author"db:"author_id"`
}
type UserResponse struct {
ID int `json:"user_id"db:"id"`
Email string `json:"email"db:"email"`
FullName string `json:"full_name"db:"full_name"`
Gender string `json:"gender"db:"gender"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.