package
Version:
v0.0.0-...-9bc3247
Opens a new window with list of versions in this module.
Published: Sep 9, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateWorkoutRequest struct {
User_ID int32 `json:"user_id"`
Name string `json:"name"`
Description string `json:"description"`
}
type CreateWorkoutResponse struct {
ID int32 `json:"id"`
User_ID int32 `json:"user_id"`
Name string `json:"name"`
Description sql.NullString `json:"description,omitempty"`
Date time.Time `json:"date"`
Created_at string `json:"created_at"`
Updated_at string `json:"updated_at"`
}
type UpdateWorkoutRequest struct {
ID int32 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
}
type UserLoginRequest struct {
ID int32 `json:"id"`
Password string `json:"password"`
}
type UserLoginResponse struct {
Token string `json:"token"`
}
type UserRegisterRequest struct {
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"password"`
}
type UserRegisterResponse struct {
ID int `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Profile map[string]any `json:"profile,omitempty"`
}
type WorkoutResponse struct {
Message string `json:"message"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.