user_entity

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NurseAccessRequest

type NurseAccessRequest struct {
	Password string `json:"password" validate:"required,min=5,max=33"`
}

type NurseEditRequest

type NurseEditRequest struct {
	Name                string `json:"name" validate:"required,min=5,max=50"`
	Nip                 int    `json:"nip" validate:"required"`
	IdentityCardScanImg string `json:"identityCardScanImg" validate:"required,validateUrl"`
}

type User

type User struct {
	Id                  string
	Nip                 string
	Name                string
	Role                string
	Password            string
	IdentityCardScanImg string
}

type UserData

type UserData struct {
	Id          string `json:"userId"`
	Name        string `json:"name"`
	Nip         int    `json:"nip"`
	AccessToken string `json:"accessToken,omitempty"`
}

type UserGetRequest

type UserGetRequest struct {
	Id        string `json:"userId"`
	Name      string `json:"name"`
	Nip       int    `json:"nip"`
	Role      string `json:"role"`
	Limit     int    `json:"limit"`
	Offset    int    `json:"offset"`
	CreatedAt string `json:"createdAt"`
}

type UserGetResponse

type UserGetResponse struct {
	Message string              `json:"message"`
	Data    *[]UserResponseData `json:"data"`
}

type UserLoginRequest

type UserLoginRequest struct {
	Nip      int    `json:"nip" validate:"required"`
	Password string `json:"password" validate:"required,min=5,max=33"`
}

type UserRegisterRequest

type UserRegisterRequest struct {
	Name                string `json:"name" validate:"required,min=5,max=50"`
	Nip                 int    `json:"nip" validate:"required"`
	Password            string `json:"password" validate:"-"`
	IdentityCardScanImg string `json:"identityCardScanImg" validate:"-"`
}

type UserRepository

type UserRepository struct {
	Id        string
	Name      string
	Nip       string
	Role      string
	Limit     int
	Offset    int
	CreatedAt string
}

type UserResponse

type UserResponse struct {
	Message string    `json:"message"`
	Data    *UserData `json:"data"`
}

type UserResponseData

type UserResponseData struct {
	Id        string `json:"userId"`
	Name      string `json:"name"`
	Nip       int    `json:"nip"`
	CreatedAt string `json:"createdAt"`
}

Jump to

Keyboard shortcuts

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