Documentation ¶
Index ¶
- type Core
- type Loan
- type LoanImpl
- func (r *LoanImpl) ChangeDocumentStatus(provider *providers.Provider, documentID, note string, ...) error
- func (r *LoanImpl) ChangeLoanStatus(provider *providers.Provider, loanId string, status modeldb.LoanStatus) (bool, error)
- func (r *LoanImpl) GetDocuments(provider *providers.Provider, loanID uint) ([]*modeldb.Document, error)
- func (r *LoanImpl) GetLoan(provider *providers.Provider, userXid string) (*modeldb.Loan, error)
- func (r *LoanImpl) GetLoanByID(provider *providers.Provider, id string) (*modeldb.Loan, error)
- func (r *LoanImpl) GetLoanOrders(provider *providers.Provider) ([]*modeldb.Loan, error)
- func (r *LoanImpl) GetLoanRequirements(provider *providers.Provider, userXid, loanID string, ...) ([]*modeldb.Requirement, error)
- func (r *LoanImpl) GetLoanTypes(provider *providers.Provider) ([]*modeldb.LoanType, error)
- func (r *LoanImpl) GetLoans(provider *providers.Provider, userXid string) ([]*modeldb.Loan, error)
- func (r *LoanImpl) Save(provider *providers.Provider, userXid string, amount, totalInstallments int, ...) (string, error)
- func (r *LoanImpl) SaveDocuments(provider *providers.Provider, ...) error
- func (r *LoanImpl) Timeline(provider *providers.Provider, loan *modeldb.Loan) ([]*modeldb.TimelineState, error)
- type User
- type UserImpl
- func (u *UserImpl) DeleteUser(provider *providers.Provider, userXid string) (bool, error)
- func (u *UserImpl) GetClients(provider *providers.Provider) ([]*model.User, error)
- func (u *UserImpl) GetStaff(provider *providers.Provider) ([]*model.User, error)
- func (u *UserImpl) GetUser(provider *providers.Provider, userXid string) (*model.User, error)
- func (u *UserImpl) SaveUserInfo(provider *providers.Provider, userXid, name, identifierNumber string) error
- func (u *UserImpl) ToggleDisableUser(provider *providers.Provider, userXid string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loan ¶
type Loan interface { Save(provider *providers.Provider, userXid string, amount, totalInstallments int, loanType string, requirementType string) (string, error) SaveDocuments(provider *providers.Provider, userXid, loanID, requirementType, fileName string) error GetLoans(provider *providers.Provider, userXid string) ([]*modeldb.Loan, error) GetLoanTypes(provider *providers.Provider) ([]*modeldb.LoanType, error) GetLoan(provider *providers.Provider, userXid string) (*modeldb.Loan, error) GetLoanByID(provider *providers.Provider, id string) (*modeldb.Loan, error) GetLoanOrders(provider *providers.Provider) ([]*modeldb.Loan, error) GetLoanRequirements(provider *providers.Provider, userXid, loanID string, documentType modeldb.DocumentType) ([]*modeldb.Requirement, error) GetDocuments(provider *providers.Provider, loanID uint) ([]*modeldb.Document, error) ChangeDocumentStatus(provider *providers.Provider, documentID string, note string, status modeldb.DocumentStatus) error Timeline(provider *providers.Provider, loan *modeldb.Loan) ([]*modeldb.TimelineState, error) ChangeLoanStatus(provider *providers.Provider, loanId string, status modeldb.LoanStatus) (bool, error) }
type LoanImpl ¶
type LoanImpl struct{}
func (*LoanImpl) ChangeDocumentStatus ¶
func (*LoanImpl) ChangeLoanStatus ¶
func (*LoanImpl) GetDocuments ¶
func (*LoanImpl) GetLoanByID ¶
func (*LoanImpl) GetLoanOrders ¶
func (*LoanImpl) GetLoanRequirements ¶
func (r *LoanImpl) GetLoanRequirements(provider *providers.Provider, userXid, loanID string, documentType modeldb.DocumentType) ([]*modeldb.Requirement, error)
func (*LoanImpl) GetLoanTypes ¶
func (*LoanImpl) SaveDocuments ¶
type User ¶
type User interface { GetUser(provider *providers.Provider, userXid string) (*model.User, error) DeleteUser(provider *providers.Provider, userXid string) (bool, error) SaveUserInfo(provider *providers.Provider, userXid, name, identifierNumber string) error GetClients(provider *providers.Provider) ([]*model.User, error) GetStaff(provider *providers.Provider) ([]*model.User, error) ToggleDisableUser(provider *providers.Provider, userXid string) (bool, error) }
type UserImpl ¶
type UserImpl struct { }
func (*UserImpl) DeleteUser ¶
func (*UserImpl) GetClients ¶
func (*UserImpl) SaveUserInfo ¶
Click to show internal directories.
Click to hide internal directories.