Documentation
¶
Index ¶
- func NewAttachmentService(attachmentRepository domain.IAttachmentRepository, ...) iservices.IAttachmentService
- type AttachmentServiceImpl
- func (impl *AttachmentServiceImpl) CreateAttachment(attachment domain.Attachment, files []*multipart.FileHeader) error
- func (impl *AttachmentServiceImpl) DeleteAttachment(systemId, templateId, ref string) error
- func (impl *AttachmentServiceImpl) FindAttachment(systemId, templateId, ref string) ([]domain.File, error)
- func (impl *AttachmentServiceImpl) UpdateAttachment(systemId, templateId, ref string, files []*multipart.FileHeader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAttachmentService ¶
func NewAttachmentService(attachmentRepository domain.IAttachmentRepository, fileRepository domain.IFileRepository) iservices.IAttachmentService
Types ¶
type AttachmentServiceImpl ¶
type AttachmentServiceImpl struct {
// contains filtered or unexported fields
}
func (*AttachmentServiceImpl) CreateAttachment ¶
func (impl *AttachmentServiceImpl) CreateAttachment(attachment domain.Attachment, files []*multipart.FileHeader) error
func (*AttachmentServiceImpl) DeleteAttachment ¶
func (impl *AttachmentServiceImpl) DeleteAttachment(systemId, templateId, ref string) error
func (*AttachmentServiceImpl) FindAttachment ¶
func (impl *AttachmentServiceImpl) FindAttachment(systemId, templateId, ref string) ([]domain.File, error)
func (*AttachmentServiceImpl) UpdateAttachment ¶
func (impl *AttachmentServiceImpl) UpdateAttachment(systemId, templateId, ref string, files []*multipart.FileHeader) error
Click to show internal directories.
Click to hide internal directories.