response

package
v0.0.0-...-47e6888 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoctorAddMessageResult

func DoctorAddMessageResult(message interface{}, name string, ctx iris.Context)

func DuplicateMessageResult

func DuplicateMessageResult(message interface{}, ctx iris.Context)

func PatientAddMessageResult

func PatientAddMessageResult(message interface{}, name string, ctx iris.Context)

func QueueAddMessageResult

func QueueAddMessageResult(message interface{}, name string, doctor_name string, ctx iris.Context)

func QueueMessageResult

func QueueMessageResult(message interface{}, ctx iris.Context)

Types

type CurrentQueue

type CurrentQueue struct {
	QueueNo     string `json:"queue_no"`
	PatientName string `json:"name"`
	DoctorName  string `json:"doctor_name"`
}

type Doctors

type Doctors struct {
	Name           string `json:"name"`
	Specialization string `json:"specialization"`
	WorkDay        string `json:"work_day"`
}

type HospitalInformation

type HospitalInformation struct {
	HospitalName string `json:"hospital_name"`
	Address      string `json:"address"`
	Phone        string `json:"phone"`
}

type Information

type Information struct {
	HospitalInfo      HospitalInformation `json:"hospital_info"`
	QueueTotal        int64               `json:"queue"`
	PatientRegistered int64               `json:"patient_registered"`
	Doctors           int64               `json:"doctors"`
}

type Patients

type Patients struct {
	Name             string `json:"name"`
	Birthdate        string `json:"birthdate"`
	Sex              string `json:"sex"`
	Phone            string `json:"phone"`
	EmergencyContact string `json:"emergency_contact"`
}

type Queue

type Queue struct {
	QueueNo     string `json:"queue_no"`
	PatientName string `json:"patient_name"`
	DoctorName  string `json:"doctor_name"`
	Date        string `json:"date"`
	Status      string `json:"status"`
}

type UnhandledPatients

type UnhandledPatients struct {
	QueueNo uint   `json:"queue_no"`
	Name    string `json:"name"`
	Status  string `json:"status"`
}

Jump to

Keyboard shortcuts

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