Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserModel ¶
type UserModel struct { ID uuid.UUID Name string Email string Password string CreatedAt time.Time CreatedBy uuid.UUID UpdatedAt pq.NullTime UpdatedBy uuid.NullUUID }
func GetOneUserByEmail ¶
func (*UserModel) Response ¶
func (user *UserModel) Response() UserModelResponse
Convert user model into json-friendly formatted response struct (without null data type).
type UserModelResponse ¶
type UserModelResponse struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Email string `json:"email"` Password string `json:"-"` CreatedAt time.Time `json:"created_at"` CreatedBy uuid.UUID `json:"created_by"` UpdatedAt time.Time `json:"updated_at"` UpdatedBy uuid.UUID `json:"updated_by"` }
func (UserModelResponse) Identifier ¶
func (am UserModelResponse) Identifier() uuid.UUID
Click to show internal directories.
Click to hide internal directories.