document

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadToS3

func UploadToS3(file multipart.File, filename string) (string, error)

Types

type CreateDocumentInput added in v1.3.4

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 added in v1.3.5

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

func CreateDocument added in v1.3.5

func CreateDocument(newdoc UploadDocumentInput, id string) CreateDocumentResponse

type DeleteDocumentResponse added in v1.3.4

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

func DeleteDocument added in v1.3.4

func DeleteDocument(docId string, patientId string) DeleteDocumentResponse

type GetDocumentByIdResponse added in v1.3.4

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

func GetDocument added in v1.3.4

func GetDocument(id string) GetDocumentByIdResponse

type GetDocumentsResponse added in v1.3.4

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

func GetDocuments added in v1.3.4

func GetDocuments(id string) GetDocumentsResponse

type UpdateDocumentResponse added in v1.3.4

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

func UpdateDocument added in v1.3.4

func UpdateDocument(newDocumentInfo CreateDocumentInput, id string) UpdateDocumentResponse

func Updatefavorite added in v1.3.4

func Updatefavorite(id string, favorite bool) UpdateDocumentResponse

type UploadDocumentInput added in v1.3.5

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