// PublishDoctor writes doctorInfo to database
PublishDoctor writes doctorInfo to database
// PublishDoctor writes doctorInfo to database
func PublishDoctor(params operations.PublishDoctorInfoParams, db *gorm.DB) middleware.Responder {
	doctorInfo := *params.Body
	uuid := params.UUID
	_, err := data.UpsertDoctor(db, uuid, doctorInfo)
	if err != nil {
		log.Printf("data.PublishDoctor error (%s)", err)
		return operations.NewPublishDoctorInfoDefault(http.StatusInternalServerError).WithPayload(&models.Error{Code: http.StatusInternalServerError, Message: err.Error()})
	}
	return operations.NewPublishDoctorInfoOK()
}
func PublishDoctor ( params operations . PublishDoctorInfoParams , db * gorm . DB ) middleware . Responder { doctorInfo := * params . Body uuid := params . UUID _ , err := data . UpsertDoctor ( db , uuid , doctorInfo ) if err != nil { log . Printf ( " " , err ) return operations . NewPublishDoctorInfoDefault ( http . StatusInternalServerError ) . WithPayload ( & models . Error { Code : http . StatusInternalServerError , Message : err . Error ( ) } ) } return operations . NewPublishDoctorInfoOK ( ) }
PublishDoctor writes doctorInfo to database
PublishDoctor writes doctorInfo to database