dto

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginRequest

type LoginRequest struct {
	Body struct {
		Email    string `json:"email"`
		Password string `json:"password"`
	}
}

type LoginResponse

type LoginResponse struct {
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
}

type RegisterRequest

type RegisterRequest struct {
	Body struct {
		Email    string `json:"email"`
		Password string `json:"password"`
	}
}

type UserResponse

type UserResponse struct {
	Body UserResponseBody
}

type UserResponseBody

type UserResponseBody struct {
	Email string `json:"email"`
}

type UsersResponse

type UsersResponse struct {
	Body UsersResponseBody
}

type UsersResponseBody

type UsersResponseBody struct {
	Data         []UserResponseBody `json:"data"`
	Count        uint64             `json:"count"`
	Displaying   uint8              `json:"displaying"`
	CurrentPage  uint8              `json:"currentPage"`
	TotalPage    uint32             `json:"totalPage"`
	NextPage     string             `json:"nextPage"`
	PreviousPage string             `json:"previousPage"`
}

Jump to

Keyboard shortcuts

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