dtos

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 4 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 UpdateUserRequest added in v0.0.3

type UpdateUserRequest struct {
	UserID      int64  `json:"-"`
	Fullname    string `json:"fullname"`
	PhoneNumber string `json:"phone_number"`
	UserType    string `json:"user_type"`
	Email       string `json:"email"`
	Password    string `json:"password"`
	UpdateBy    string `json:"-"`
}

func (UpdateUserRequest) Validate added in v0.0.3

func (cup UpdateUserRequest) Validate() error

type UpdateUserStatusRequest added in v0.0.3

type UpdateUserStatusRequest struct {
	UserID   int64  `json:"-"`
	Status   string `json:"status"`
	UpdateBy string `json:"-"`
}

func (UpdateUserStatusRequest) Validate added in v0.0.3

func (ussp UpdateUserStatusRequest) Validate() error

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"`
	CreatedBy   string    `json:"created_by"`
}

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