requests

package
v0.0.0-...-9bc3247 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateWorkoutRequest

type CreateWorkoutRequest struct {
	User_ID     int32  `json:"user_id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type CreateWorkoutResponse

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

type UpdateWorkoutRequest struct {
	ID          int32  `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type UserLoginRequest

type UserLoginRequest struct {
	ID       int32  `json:"id"`
	Password string `json:"password"`
}

type UserLoginResponse

type UserLoginResponse struct {
	Token string `json:"token"`
}

type UserRegisterRequest

type UserRegisterRequest struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type UserRegisterResponse

type UserRegisterResponse struct {
	ID       int            `json:"id"`
	Username string         `json:"username"`
	Email    string         `json:"email"`
	Profile  map[string]any `json:"profile,omitempty"`
}

type WorkoutResponse

type WorkoutResponse struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL