Discover Packages
github.com/kangman53/project-sprint-halo-suster
entity
user
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: May 17, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type NurseAccessRequest struct {
Password string `json:"password" validate:"required,min=5,max=33"`
}
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 UserData struct {
Id string `json:"userId"`
Name string `json:"name"`
Nip int `json:"nip"`
AccessToken string `json:"accessToken,omitempty"`
}
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 UserLoginRequest struct {
Nip int `json:"nip" validate:"required"`
Password string `json:"password" validate:"required,min=5,max=33"`
}
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 UserResponse struct {
Message string `json:"message"`
Data *UserData `json:"data"`
}
type UserResponseData struct {
Id string `json:"userId"`
Name string `json:"name"`
Nip int `json:"nip"`
CreatedAt string `json:"createdAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.