document

package
v2.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadToS3

func UploadToS3(file io.Reader, filename string) (string, error)

Types

type CreateDocumentInput

type CreateDocumentInput struct {
	ID           string `json:"id"`
	OwnerID      string `json:"owner_id"`
	Name         string `json:"name"`
	DocumentType string `json:"document_type"`
	Category     string `json:"category"`
	IsFavorite   bool   `json:"is_favorite"`
	DownloadURL  string `json:"download_url"`
}

type CreateDocumentResponse

type CreateDocumentResponse struct {
	Document       model.Document
	UpdatedPatient model.Patient
	Code           int
	Err            error
}

func CreateDocument

func CreateDocument(newdoc UploadDocumentInput, ownerId string, uploaderID string) CreateDocumentResponse

type DeleteDocumentResponse

type DeleteDocumentResponse struct {
	UpdatedPatient model.Patient
	Code           int
	Err            error
}

func DeleteDocument

func DeleteDocument(docId string, patientId string) DeleteDocumentResponse

type GetDocumentByIdResponse

type GetDocumentByIdResponse struct {
	Document model.Document
	Code     int
	Err      error
}

func GetDocument

func GetDocument(id string) GetDocumentByIdResponse

type GetDocumentsResponse

type GetDocumentsResponse struct {
	Documents []model.Document
	Code      int
	Err       error
}

func GetDocuments

func GetDocuments(id string) GetDocumentsResponse

type UpdateDocumentResponse

type UpdateDocumentResponse struct {
	Document model.Document
	Code     int
	Err      error
}

func UpdateDocument

func UpdateDocument(newDocumentInfo CreateDocumentInput, id string) UpdateDocumentResponse

func Updatefavorite

func Updatefavorite(id string, favorite bool, ownerID string) UpdateDocumentResponse

type UploadDocumentInput

type UploadDocumentInput struct {
	ID           string `json:"id"`
	OwnerID      string `json:"owner_id"`
	Name         string `json:"name"`
	DocumentType string `json:"document_type"`
	Category     string `json:"category"`
	IsFavorite   bool   `json:"is_favorite"`
	DownloadURL  string `json:"download_url"`
}

Jump to

Keyboard shortcuts

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