entity

package
v0.0.0-...-4d4fae9 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package entity defines all structs that flow through all application layers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrEmptyMedicalRecord

func ErrEmptyMedicalRecord() error

ErrEmptyMedicalRecord returns codes.InvalidArgument explained that the instance is empty or nil.

func ErrInternal

func ErrInternal(message string) error

ErrInternal returns codes.Internal explained that unexpected behavior occurred in system.

Types

type MedicalRecord

type MedicalRecord struct {
	Symptom   string
	Diagnosis string
	Therapy   string
	Result    string
	User      *User
	CreatedAt time.Time
	UpdatedAt time.Time
}

MedicalRecord represents medical record.

type User

type User struct {
	Name  string
	Email string
}

User represents user.

Jump to

Keyboard shortcuts

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