file_access_dto

package
v0.0.0-...-f0c377f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateFileAccess

type CreateFileAccess struct {
	FileID        uint
	DoctorID      uint   `json:"doctor_id" validate:"required"`
	AppointmentID uint   `json:"appointment_id" validate:"required"`
	ExpiresAt     string `json:"expires_at" validate:"required"`
}

type FileAccessResponse

type FileAccessResponse struct {
	ID uint `json:"id"`

	FileID        uint `json:"file_id"`
	DoctorID      uint `json:"doctor_id"`
	AppointmentID uint `json:"appointment_id"`

	ExpiresAt time.Time `json:"expires_at"`
}

func MapFromDomain

func MapFromDomain(file *entities.FileAccess) *FileAccessResponse

func MapFromDomainSlice

func MapFromDomainSlice(fileAccess []entities.FileAccess) []*FileAccessResponse

Jump to

Keyboard shortcuts

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