// GetDoctor gets doctorInfo related to UUID
GetDoctor gets doctorInfo related to UUID
// GetDoctor gets doctorInfo related to UUID
func GetDoctor(params operations.GetDoctorInfoParams, db *gorm.DB) middleware.Responder {
	result, err := data.GetDoctor(db, params.UUID)
	if err != nil {
		log.Printf("data.GetDoctor error (%s)", err)
		return operations.NewGetDoctorInfoDefault(http.StatusInternalServerError).WithPayload(&models.Error{Code: http.StatusInternalServerError, Message: err.Error()})
	}
	return operations.NewGetDoctorInfoOK().WithPayload(&result)
}
func GetDoctor ( params operations . GetDoctorInfoParams , db * gorm . DB ) middleware . Responder { result , err := data . GetDoctor ( db , params . UUID ) if err != nil { log . Printf ( " " , err ) return operations . NewGetDoctorInfoDefault ( http . StatusInternalServerError ) . WithPayload ( & models . Error { Code : http . StatusInternalServerError , Message : err . Error ( ) } ) } return operations . NewGetDoctorInfoOK ( ) . WithPayload ( & result ) }
GetDoctor gets doctorInfo related to UUID
GetDoctor gets doctorInfo related to UUID