mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
upload attachment
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { AttachmentLocalDataSource } from 'src/app/module/chat/data/data-source/attachment/attachment-local-data-source.service'
|
||||
import { AttachmentTable } from '../../infra/database/dexie/schema/attachment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class AttachmentRepositoryService {
|
||||
|
||||
constructor(
|
||||
private AttachmentLocalDataSourceService: AttachmentLocalDataSource
|
||||
) { }
|
||||
|
||||
create(data: AttachmentTable) {
|
||||
return this.AttachmentLocalDataSourceService.insert(data)
|
||||
}
|
||||
|
||||
get findOne() {
|
||||
return this.AttachmentLocalDataSourceService.findOne
|
||||
}
|
||||
|
||||
get insert() {
|
||||
return this.AttachmentLocalDataSourceService.insert
|
||||
}
|
||||
|
||||
get update() {
|
||||
return this.AttachmentLocalDataSourceService.update
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user