Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type AuthResponse struct {
Token string `json:"token"`
User UserResponse `json:"user"`
}
type LoginRequest ¶
type RegisterRequest ¶
type UserResponse ¶
type UserResponse struct {
ID uint `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Role string `json:"role"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt *time.Time `json:"deleted_at,omitempty"`
}
func ToUserResponse ¶
func ToUserResponse(u *entity.User) UserResponse
Click to show internal directories.
Click to hide internal directories.