Documentation ¶
Index ¶
- type MockDAO
- func (m *MockDAO) AddAttachmentToInsolvencyResource(transactionID string, fileID string, attachmentType string) (*models.AttachmentResourceDao, error)
- func (m *MockDAO) AppointPractitioner(dao *models.AppointmentResourceDao, transactionID string, ...) (error, int)
- func (m *MockDAO) CreateInsolvencyResource(dao *models.InsolvencyResourceDao) (error, int)
- func (m *MockDAO) CreatePractitionersResource(dao *models.PractitionerResourceDao, transactionID string) (error, int)
- func (m *MockDAO) CreateProgressReportResource(dao *models.ProgressReportResourceDao, transactionID string) (int, error)
- func (m *MockDAO) CreateResolutionResource(dao *models.ResolutionResourceDao, transactionID string) (int, error)
- func (m *MockDAO) CreateStatementOfAffairsResource(dao *models.StatementOfAffairsResourceDao, transactionID string) (int, error)
- func (m *MockDAO) DeleteAttachmentResource(transactionID, attachmentID string) (int, error)
- func (m *MockDAO) DeletePractitioner(practitionerID string, transactionID string) (error, int)
- func (m *MockDAO) DeletePractitionerAppointment(transactionID string, practitionerID string) (error, int)
- func (m *MockDAO) DeleteResolutionResource(transactionID string) (int, error)
- func (m *MockDAO) DeleteStatementOfAffairsResource(transactionID string) (int, error)
- func (m *MockDAO) EXPECT() *MockDAOMockRecorder
- func (m *MockDAO) GetAttachmentFromInsolvencyResource(transactionID string, fileID string) (models.AttachmentResourceDao, error)
- func (m *MockDAO) GetAttachmentResources(transactionID string) ([]models.AttachmentResourceDao, error)
- func (m *MockDAO) GetInsolvencyResource(transactionID string) (models.InsolvencyResourceDao, error)
- func (m *MockDAO) GetPractitionerResource(practitionerID string, transactionID string) (models.PractitionerResourceDao, error)
- func (m *MockDAO) GetPractitionerResources(transactionID string) ([]models.PractitionerResourceDao, error)
- func (m *MockDAO) GetResolutionResource(transactionID string) (models.ResolutionResourceDao, error)
- func (m *MockDAO) GetStatementOfAffairsResource(transactionID string) (models.StatementOfAffairsResourceDao, error)
- func (m *MockDAO) UpdateAttachmentStatus(transactionID, attachmentID string, avStatus string) (int, error)
- type MockDAOMockRecorder
- func (mr *MockDAOMockRecorder) AddAttachmentToInsolvencyResource(transactionID, fileID, attachmentType interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) AppointPractitioner(dao, transactionID, practitionerID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) CreateInsolvencyResource(dao interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) CreatePractitionersResource(transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) CreateProgressReportResource(dao, transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) CreateResolutionResource(dao, transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) CreateStatementOfAffairsResource(dao, transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) DeleteAttachmentResource(transactionID, attachmentID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) DeletePractitioner(practitionerID, transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) DeletePractitionerAppointment(transactionID, practitionerID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) DeleteResolutionResource(transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) DeleteStatementOfAffairsResource(transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) GetAttachmentFromInsolvencyResource(transactionID, fileID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) GetAttachmentResources(transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) GetInsolvencyResource(transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) GetPractitionerResource(practitionerID, transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) GetPractitionerResources(transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) GetResolutionResource(transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) GetStatementOfAffairsResource(transactionID interface{}) *gomock.Call
- func (mr *MockDAOMockRecorder) UpdateAttachmentStatus(transactionID, attachmentID, avStatus interface{}) *gomock.Call
- type MongoDatabaseInterface
- type MongoService
- func (m *MongoService) AddAttachmentToInsolvencyResource(transactionID string, fileID string, attachmentType string) (*models.AttachmentResourceDao, error)
- func (m *MongoService) AppointPractitioner(dao *models.AppointmentResourceDao, transactionID string, ...) (error, int)
- func (m *MongoService) CreateInsolvencyResource(dao *models.InsolvencyResourceDao) (error, int)
- func (m *MongoService) CreatePractitionersResource(dao *models.PractitionerResourceDao, transactionID string) (error, int)
- func (m *MongoService) CreateProgressReportResource(dao *models.ProgressReportResourceDao, transactionID string) (int, error)
- func (m *MongoService) CreateResolutionResource(dao *models.ResolutionResourceDao, transactionID string) (int, error)
- func (m *MongoService) CreateStatementOfAffairsResource(dao *models.StatementOfAffairsResourceDao, transactionID string) (int, error)
- func (m *MongoService) DeleteAttachmentResource(transactionID, attachmentID string) (int, error)
- func (m *MongoService) DeletePractitioner(practitionerID string, transactionID string) (error, int)
- func (m *MongoService) DeletePractitionerAppointment(transactionID string, practitionerID string) (error, int)
- func (m *MongoService) DeleteProgressReportResource(transactionID string) (int, error)
- func (m *MongoService) DeleteResolutionResource(transactionID string) (int, error)
- func (m *MongoService) DeleteResource(transactionID string, resType string) (int, error)
- func (m *MongoService) DeleteStatementOfAffairsResource(transactionID string) (int, error)
- func (m *MongoService) GetAttachmentFromInsolvencyResource(transactionID string, fileID string) (models.AttachmentResourceDao, error)
- func (m *MongoService) GetAttachmentResources(transactionID string) ([]models.AttachmentResourceDao, error)
- func (m *MongoService) GetInsolvencyResource(transactionID string) (models.InsolvencyResourceDao, error)
- func (m *MongoService) GetPractitionerResource(practitionerID string, transactionID string) (models.PractitionerResourceDao, error)
- func (m *MongoService) GetPractitionerResources(transactionID string) ([]models.PractitionerResourceDao, error)
- func (m *MongoService) GetProgressReportResource(transactionID string) (*models.ProgressReportResourceDao, error)
- func (m *MongoService) GetResolutionResource(transactionID string) (models.ResolutionResourceDao, error)
- func (m *MongoService) GetStatementOfAffairsResource(transactionID string) (models.StatementOfAffairsResourceDao, error)
- func (m *MongoService) UpdateAttachmentStatus(transactionID, attachmentID string, avStatus string) (int, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDAO ¶
type MockDAO struct {
// contains filtered or unexported fields
}
MockDAO is a mock of DAO interface.
func NewMockDAO ¶
func NewMockDAO(ctrl *gomock.Controller) *MockDAO
NewMockDAO creates a new mock instance.
func (*MockDAO) AddAttachmentToInsolvencyResource ¶
func (m *MockDAO) AddAttachmentToInsolvencyResource(transactionID string, fileID string, attachmentType string) (*models.AttachmentResourceDao, error)
AddAttachmentToInsolvencyResource mocks base method.
func (*MockDAO) AppointPractitioner ¶
func (m *MockDAO) AppointPractitioner(dao *models.AppointmentResourceDao, transactionID string, practitionerID string) (error, int)
AppointPractitioner mocks base method.
func (*MockDAO) CreateInsolvencyResource ¶
func (m *MockDAO) CreateInsolvencyResource(dao *models.InsolvencyResourceDao) (error, int)
CreateInsolvencyResource mocks base method.
func (*MockDAO) CreatePractitionersResource ¶
func (m *MockDAO) CreatePractitionersResource(dao *models.PractitionerResourceDao, transactionID string) (error, int)
CreatePractitionersResource mocks base method.
func (*MockDAO) CreateProgressReportResource ¶
func (m *MockDAO) CreateProgressReportResource(dao *models.ProgressReportResourceDao, transactionID string) (int, error)
CreateProgressReportResource mocks base method.
func (*MockDAO) CreateResolutionResource ¶
func (m *MockDAO) CreateResolutionResource(dao *models.ResolutionResourceDao, transactionID string) (int, error)
CreateResolutionResource mocks base method.
func (*MockDAO) CreateStatementOfAffairsResource ¶
func (m *MockDAO) CreateStatementOfAffairsResource(dao *models.StatementOfAffairsResourceDao, transactionID string) (int, error)
CreateStatementOfAffairsResource mocks base method.
func (*MockDAO) DeleteAttachmentResource ¶
DeleteAttachmentResource mocks base method.
func (*MockDAO) DeletePractitioner ¶
DeletePractitioner mocks base method.
func (*MockDAO) DeletePractitionerAppointment ¶
func (m *MockDAO) DeletePractitionerAppointment(transactionID string, practitionerID string) (error, int)
DeletePractitionerAppointment mocks base method.
func (*MockDAO) DeleteResolutionResource ¶
DeleteResolutionResource mocks base method.
func (*MockDAO) DeleteStatementOfAffairsResource ¶
DeleteStatementOfAffairsResource mocks base method.
func (*MockDAO) EXPECT ¶
func (m *MockDAO) EXPECT() *MockDAOMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDAO) GetAttachmentFromInsolvencyResource ¶
func (m *MockDAO) GetAttachmentFromInsolvencyResource(transactionID string, fileID string) (models.AttachmentResourceDao, error)
GetAttachmentFromInsolvencyResource mocks base method.
func (*MockDAO) GetAttachmentResources ¶
func (m *MockDAO) GetAttachmentResources(transactionID string) ([]models.AttachmentResourceDao, error)
GetAttachmentResources mocks base method.
func (*MockDAO) GetInsolvencyResource ¶
func (m *MockDAO) GetInsolvencyResource(transactionID string) (models.InsolvencyResourceDao, error)
GetInsolvencyResource mocks base method.
func (*MockDAO) GetPractitionerResource ¶
func (m *MockDAO) GetPractitionerResource(practitionerID string, transactionID string) (models.PractitionerResourceDao, error)
GetPractitionerResource mocks base method.
func (*MockDAO) GetPractitionerResources ¶
func (m *MockDAO) GetPractitionerResources(transactionID string) ([]models.PractitionerResourceDao, error)
GetPractitionerResources mocks base method.
func (*MockDAO) GetResolutionResource ¶
func (m *MockDAO) GetResolutionResource(transactionID string) (models.ResolutionResourceDao, error)
GetResolutionResource mocks base method.
func (*MockDAO) GetStatementOfAffairsResource ¶
func (m *MockDAO) GetStatementOfAffairsResource(transactionID string) (models.StatementOfAffairsResourceDao, error)
GetStatementOfAffairsResource mocks base method.
type MockDAOMockRecorder ¶
type MockDAOMockRecorder struct {
// contains filtered or unexported fields
}
MockDAOMockRecorder is the mock recorder for MockDAO.
func (*MockDAOMockRecorder) AddAttachmentToInsolvencyResource ¶
func (mr *MockDAOMockRecorder) AddAttachmentToInsolvencyResource(transactionID, fileID, attachmentType interface{}) *gomock.Call
AddAttachmentToInsolvencyResource indicates an expected call of AddAttachmentToInsolvencyResource.
func (*MockDAOMockRecorder) AppointPractitioner ¶
func (mr *MockDAOMockRecorder) AppointPractitioner(dao, transactionID, practitionerID interface{}) *gomock.Call
AppointPractitioner indicates an expected call of AppointPractitioner.
func (*MockDAOMockRecorder) CreateInsolvencyResource ¶
func (mr *MockDAOMockRecorder) CreateInsolvencyResource(dao interface{}) *gomock.Call
CreateInsolvencyResource indicates an expected call of CreateInsolvencyResource.
func (*MockDAOMockRecorder) CreatePractitionersResource ¶
func (mr *MockDAOMockRecorder) CreatePractitionersResource(transactionID interface{}) *gomock.Call
CreatePractitionersResource indicates an expected call of CreatePractitionersResource.
func (*MockDAOMockRecorder) CreateProgressReportResource ¶
func (mr *MockDAOMockRecorder) CreateProgressReportResource(dao, transactionID interface{}) *gomock.Call
CreateProgressReportResource indicates an expected call of CreateProgressReportResource.
func (*MockDAOMockRecorder) CreateResolutionResource ¶
func (mr *MockDAOMockRecorder) CreateResolutionResource(dao, transactionID interface{}) *gomock.Call
CreateResolutionResource indicates an expected call of CreateResolutionResource.
func (*MockDAOMockRecorder) CreateStatementOfAffairsResource ¶
func (mr *MockDAOMockRecorder) CreateStatementOfAffairsResource(dao, transactionID interface{}) *gomock.Call
CreateStatementOfAffairsResource indicates an expected call of CreateStatementOfAffairsResource.
func (*MockDAOMockRecorder) DeleteAttachmentResource ¶
func (mr *MockDAOMockRecorder) DeleteAttachmentResource(transactionID, attachmentID interface{}) *gomock.Call
DeleteAttachmentResource indicates an expected call of DeleteAttachmentResource.
func (*MockDAOMockRecorder) DeletePractitioner ¶
func (mr *MockDAOMockRecorder) DeletePractitioner(practitionerID, transactionID interface{}) *gomock.Call
DeletePractitioner indicates an expected call of DeletePractitioner.
func (*MockDAOMockRecorder) DeletePractitionerAppointment ¶
func (mr *MockDAOMockRecorder) DeletePractitionerAppointment(transactionID, practitionerID interface{}) *gomock.Call
DeletePractitionerAppointment indicates an expected call of DeletePractitionerAppointment.
func (*MockDAOMockRecorder) DeleteResolutionResource ¶
func (mr *MockDAOMockRecorder) DeleteResolutionResource(transactionID interface{}) *gomock.Call
DeleteResolutionResource indicates an expected call of DeleteResolutionResource.
func (*MockDAOMockRecorder) DeleteStatementOfAffairsResource ¶
func (mr *MockDAOMockRecorder) DeleteStatementOfAffairsResource(transactionID interface{}) *gomock.Call
DeleteStatementOfAffairsResource indicates an expected call of DeleteStatementOfAffairsResource.
func (*MockDAOMockRecorder) GetAttachmentFromInsolvencyResource ¶
func (mr *MockDAOMockRecorder) GetAttachmentFromInsolvencyResource(transactionID, fileID interface{}) *gomock.Call
GetAttachmentFromInsolvencyResource indicates an expected call of GetAttachmentFromInsolvencyResource.
func (*MockDAOMockRecorder) GetAttachmentResources ¶
func (mr *MockDAOMockRecorder) GetAttachmentResources(transactionID interface{}) *gomock.Call
GetAttachmentResources indicates an expected call of GetAttachmentResources.
func (*MockDAOMockRecorder) GetInsolvencyResource ¶
func (mr *MockDAOMockRecorder) GetInsolvencyResource(transactionID interface{}) *gomock.Call
GetInsolvencyResource indicates an expected call of GetInsolvencyResource.
func (*MockDAOMockRecorder) GetPractitionerResource ¶
func (mr *MockDAOMockRecorder) GetPractitionerResource(practitionerID, transactionID interface{}) *gomock.Call
GetPractitionerResource indicates an expected call of GetPractitionerResource.
func (*MockDAOMockRecorder) GetPractitionerResources ¶
func (mr *MockDAOMockRecorder) GetPractitionerResources(transactionID interface{}) *gomock.Call
GetPractitionerResources indicates an expected call of GetPractitionerResources.
func (*MockDAOMockRecorder) GetResolutionResource ¶
func (mr *MockDAOMockRecorder) GetResolutionResource(transactionID interface{}) *gomock.Call
GetResolutionResource indicates an expected call of GetResolutionResource.
func (*MockDAOMockRecorder) GetStatementOfAffairsResource ¶
func (mr *MockDAOMockRecorder) GetStatementOfAffairsResource(transactionID interface{}) *gomock.Call
GetStatementOfAffairsResource indicates an expected call of GetStatementOfAffairsResource.
func (*MockDAOMockRecorder) UpdateAttachmentStatus ¶
func (mr *MockDAOMockRecorder) UpdateAttachmentStatus(transactionID, attachmentID, avStatus interface{}) *gomock.Call
UpdateAttachmentStatus indicates an expected call of UpdateAttachmentStatus.
type MongoDatabaseInterface ¶
type MongoDatabaseInterface interface {
Collection(name string, opts ...*options.CollectionOptions) *mongo.Collection
}
MongoDatabaseInterface is an interface that describes the mongodb driver
type MongoService ¶
type MongoService struct { CollectionName string // contains filtered or unexported fields }
MongoService is an implementation of the Service interface using MongoDB as the backend driver.
func (*MongoService) AddAttachmentToInsolvencyResource ¶
func (m *MongoService) AddAttachmentToInsolvencyResource(transactionID string, fileID string, attachmentType string) (*models.AttachmentResourceDao, error)
func (*MongoService) AppointPractitioner ¶
func (m *MongoService) AppointPractitioner(dao *models.AppointmentResourceDao, transactionID string, practitionerID string) (error, int)
AppointPractitioner adds appointment details insolvency case with the specified transactionID and practitionerID
func (*MongoService) CreateInsolvencyResource ¶
func (m *MongoService) CreateInsolvencyResource(dao *models.InsolvencyResourceDao) (error, int)
CreateInsolvencyResource will store the insolvency request into the database
func (*MongoService) CreatePractitionersResource ¶
func (m *MongoService) CreatePractitionersResource(dao *models.PractitionerResourceDao, transactionID string) (error, int)
CreatePractitionersResource stores an incoming practitioner to the list of practitioners for the insolvency case with the specified transactionID
func (*MongoService) CreateProgressReportResource ¶
func (m *MongoService) CreateProgressReportResource(dao *models.ProgressReportResourceDao, transactionID string) (int, error)
CreateProgressReportResource stores the statement of affairs resource for the insolvency case with the specified transactionID
func (*MongoService) CreateResolutionResource ¶
func (m *MongoService) CreateResolutionResource(dao *models.ResolutionResourceDao, transactionID string) (int, error)
CreateResolutionResource stores the resolution for the insolvency case with the specified transactionID
func (*MongoService) CreateStatementOfAffairsResource ¶
func (m *MongoService) CreateStatementOfAffairsResource(dao *models.StatementOfAffairsResourceDao, transactionID string) (int, error)
CreateStatementOfAffairsResource stores the statement of affairs resource for the insolvency case with the specified transactionID
func (*MongoService) DeleteAttachmentResource ¶
func (m *MongoService) DeleteAttachmentResource(transactionID, attachmentID string) (int, error)
DeleteAttachmentResource deletes an attachment filed for an Insolvency Case
func (*MongoService) DeletePractitioner ¶
func (m *MongoService) DeletePractitioner(practitionerID string, transactionID string) (error, int)
DeletePractitioner deletes a practitioner for an insolvency case with the specified transactionID and practitionerID
func (*MongoService) DeletePractitionerAppointment ¶
func (m *MongoService) DeletePractitionerAppointment(transactionID string, practitionerID string) (error, int)
DeletePractitionerAppointment deletes an appointment for the specified transactionID and practitionerID
func (*MongoService) DeleteProgressReportResource ¶
func (m *MongoService) DeleteProgressReportResource(transactionID string) (int, error)
DeleteProgressReportResource deletes the progress report filed for an insolvency case
func (*MongoService) DeleteResolutionResource ¶
func (m *MongoService) DeleteResolutionResource(transactionID string) (int, error)
DeleteResolutionResource deletes a resolution resource filed for an Insolvency Case
func (*MongoService) DeleteResource ¶
func (m *MongoService) DeleteResource(transactionID string, resType string) (int, error)
func (*MongoService) DeleteStatementOfAffairsResource ¶
func (m *MongoService) DeleteStatementOfAffairsResource(transactionID string) (int, error)
DeleteStatementOfAffairsResource deletes the statement of affairs filed for an insolvency case
func (*MongoService) GetAttachmentFromInsolvencyResource ¶
func (m *MongoService) GetAttachmentFromInsolvencyResource(transactionID string, fileID string) (models.AttachmentResourceDao, error)
GetAttachmentFromInsolvencyResource retrieves an attachment filed for an Insolvency Case
func (*MongoService) GetAttachmentResources ¶
func (m *MongoService) GetAttachmentResources(transactionID string) ([]models.AttachmentResourceDao, error)
GetAttachmentResources retrieves all attachments filed for an Insolvency Case
func (*MongoService) GetInsolvencyResource ¶
func (m *MongoService) GetInsolvencyResource(transactionID string) (models.InsolvencyResourceDao, error)
GetInsolvencyResource retrieves all the data for an insolvency case with the specified transactionID
func (*MongoService) GetPractitionerResource ¶
func (m *MongoService) GetPractitionerResource(practitionerID string, transactionID string) (models.PractitionerResourceDao, error)
GetPractitionerResource gets a single practitioner for an insolvency case with the specified transactionID and practitionerID
func (*MongoService) GetPractitionerResources ¶
func (m *MongoService) GetPractitionerResources(transactionID string) ([]models.PractitionerResourceDao, error)
GetPractitionerResources gets a list of all practitioners for an insolvency case with the specified transactionID
func (*MongoService) GetProgressReportResource ¶
func (m *MongoService) GetProgressReportResource(transactionID string) (*models.ProgressReportResourceDao, error)
GetProgressReportResource retrieves the progress report filed for an Insolvency Case
func (*MongoService) GetResolutionResource ¶
func (m *MongoService) GetResolutionResource(transactionID string) (models.ResolutionResourceDao, error)
GetResolutionResource retrieves the resolution filed for an Insolvency Case
func (*MongoService) GetStatementOfAffairsResource ¶
func (m *MongoService) GetStatementOfAffairsResource(transactionID string) (models.StatementOfAffairsResourceDao, error)
GetStatementOfAffairsResource retrieves the statement of affairs filed for an Insolvency Case
func (*MongoService) UpdateAttachmentStatus ¶
func (m *MongoService) UpdateAttachmentStatus(transactionID, attachmentID string, avStatus string) (int, error)
UpdateAttachmentStatus updates the status of an attachment filed for an Insolvency Case
type Service ¶
type Service interface { // CreateInsolvencyResource will persist a newly created resource CreateInsolvencyResource(dao *models.InsolvencyResourceDao) (error, int) // GetInsolvencyResource will retrieve an Insolvency Resource GetInsolvencyResource(transactionID string) (models.InsolvencyResourceDao, error) // CreatePractitionersResource will persist a newly created practitioner resource CreatePractitionersResource(dao *models.PractitionerResourceDao, transactionID string) (error, int) // GetPractitionerResources will retrieve a list of persisted practitioners GetPractitionerResources(transactionID string) ([]models.PractitionerResourceDao, error) // GetPractitionerResource will retrieve a practitioner from the insolvency resource GetPractitionerResource(practitionerID string, transactionID string) (models.PractitionerResourceDao, error) // DeletePractitioner will delete a practitioner from the Insolvency resource DeletePractitioner(practitionerID, transactionID string) (error, int) // AppointPractitioner will appoint add appointment details to a practitioner resource AppointPractitioner(dao *models.AppointmentResourceDao, transactionID string, practitionerID string) (error, int) // DeletePractitionerAppointment will delete the appointment for a practitioner DeletePractitionerAppointment(transactionID string, practitionerID string) (error, int) // AddAttachmentToInsolvencyResource will add an attachment to an insolvency resource AddAttachmentToInsolvencyResource(transactionID string, fileID string, attachmentType string) (*models.AttachmentResourceDao, error) // GetAttachmentFromInsolvencyResource will retrieve an attachment from an insolvency resource GetAttachmentFromInsolvencyResource(transactionID string, attachmentID string) (models.AttachmentResourceDao, error) // GetAttachmentResources retrieves all attachments filed for an Insolvency Case GetAttachmentResources(transactionID string) ([]models.AttachmentResourceDao, error) // DeleteAttachmentResource deletes an attachment in an Insolvency Case DeleteAttachmentResource(transactionID, attachmentID string) (int, error) // UpdateAttachmentStatus updates the status of an attachment for an Insolvency Case UpdateAttachmentStatus(transactionID, attachmentID, avStatus string) (int, error) // CreateStatementOfAffairsResource creates the statement of affairs resource for an Insolvency Case CreateStatementOfAffairsResource(dao *models.StatementOfAffairsResourceDao, transactionID string) (int, error) // CreateProgressReportResource creates the progress report resource for an Insolvency Case CreateProgressReportResource(dao *models.ProgressReportResourceDao, transactionID string) (int, error) // DeleteStatementOfAffairsResource deletes the statement of affairs filed for an insolvency case DeleteStatementOfAffairsResource(transactionID string) (int, error) // CreateResolutionResource creates the resolution resource for an Insolvency Case CreateResolutionResource(dao *models.ResolutionResourceDao, transactionID string) (int, error) // GetStatementOfAffairsResource retrieves the statement of affairs resource from an Insolvency Case GetStatementOfAffairsResource(transactionID string) (models.StatementOfAffairsResourceDao, error) // GetResolutionResource retrieves the resolution resource from an Insolvency Case GetResolutionResource(transactionID string) (models.ResolutionResourceDao, error) // DeleteResolutionResource deletes a resolution for an Insolvency Case DeleteResolutionResource(transactionID string) (int, error) //GetProgressReportResource retrieves the progress report resource from an Insolvency case GetProgressReportResource(transactionID string) (*models.ProgressReportResourceDao, error) //DeleteProgressReportResource deletes a progress report for an insolvency case DeleteProgressReportResource(transactionID string) (int, error) }
Service interface declares how to interact with the persistence layer regardless of underlying technology
func NewDAOService ¶
NewDAOService will create a new instance of the Service interface. All details about its implementation and the database driver will be hidden from outside of this package