dtos

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserRequest added in v0.0.3

type CreateUserRequest struct {
	FullName    string `json:"fullname"`
	PhoneNumber string `json:"phone_number"`
	Email       string `json:"email"`
	Password    string `json:"password"`
}

func (CreateUserRequest) Validate added in v0.0.3

func (cup CreateUserRequest) Validate() error

type CreateUserResponse added in v0.0.3

type CreateUserResponse struct {
	UserID    int64  `json:"user_id"`
	Token     string `json:"token"`
	ExpiredAt int64  `json:"expired_at"`
}

type UpdateUser added in v0.0.8

type UpdateUser struct {
	Fullname    string `json:"fullname"`
	PhoneNumber string `json:"phone_number"`
	UserType    string `json:"user_type"`
}

func (UpdateUser) Validate added in v0.0.8

func (cup UpdateUser) Validate() error

type UpdateUserRequest added in v0.0.3

type UpdateUserRequest struct {
	UserID int64
	UpdateUser
}

type UpdateUserStatus added in v0.0.8

type UpdateUserStatus struct {
	Status string `json:"status"`
}

func (UpdateUserStatus) Validate added in v0.0.8

func (ussp UpdateUserStatus) Validate() error

type UpdateUserStatusRequest added in v0.0.3

type UpdateUserStatusRequest struct {
	UserID int64
	UpdateUserStatus
}

type UserDetailResponse added in v0.0.3

type UserDetailResponse struct {
	UserID      int64     `json:"id"`
	Email       string    `json:"email"`
	Fullname    string    `json:"fullname"`
	PhoneNumber string    `json:"phone_number"`
	UserType    string    `json:"user_type"`
	IsActive    bool      `json:"is_active"`
	CreatedAt   time.Time `json:"created_at"`
}

type UserLoginRequest added in v0.0.3

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

func (UserLoginRequest) Validate added in v0.0.3

func (ulr UserLoginRequest) Validate() error

type UserLoginResponse added in v0.0.3

type UserLoginResponse struct {
	AccessToken string `json:"access_token"`
	ExpiredAt   int64  `json:"expired_at"`
}

Jump to

Keyboard shortcuts

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