Documentation
¶
Index ¶
- type CompanyService
- func (s CompanyService) DeleteCompany(id int64) bool
- func (s CompanyService) GetCompany(id int64) (sqlDomain.Company, error)
- func (s CompanyService) SaveCompany(dto dto.CompanyDTO) (sqlDomain.Company, error)
- func (s CompanyService) UpdateCompany(dto dto.CompanyDTO, id int64) (sqlDomain.Company, error)
- type HealthService
- type LoginService
- type PortfolioService
- func (s PortfolioService) AddProductInPortfolio(loggedUser middleware.LoggedUser, id int64) (nosqlDomain.Portfolio, error)
- func (s PortfolioService) CreatePortfolio(loggedUser middleware.LoggedUser) (nosqlDomain.Portfolio, error)
- func (s PortfolioService) DeletePortfolio(loggedUser middleware.LoggedUser) error
- func (s PortfolioService) GetPortfolio(user middleware.LoggedUser) (nosqlDomain.Portfolio, error)
- type ProfileService
- type SessionService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompanyService ¶
type CompanyService struct {
// contains filtered or unexported fields
}
func NewCompanyService ¶
func NewCompanyService(conn *db.Connections) CompanyService
func (CompanyService) DeleteCompany ¶
func (s CompanyService) DeleteCompany(id int64) bool
func (CompanyService) GetCompany ¶
func (s CompanyService) GetCompany(id int64) (sqlDomain.Company, error)
func (CompanyService) SaveCompany ¶
func (s CompanyService) SaveCompany(dto dto.CompanyDTO) (sqlDomain.Company, error)
func (CompanyService) UpdateCompany ¶
func (s CompanyService) UpdateCompany(dto dto.CompanyDTO, id int64) (sqlDomain.Company, error)
type HealthService ¶
type HealthService struct{}
func NewHealthService ¶
func NewHealthService() HealthService
func (HealthService) GetHealthService ¶
func (s HealthService) GetHealthService(loggedUser middleware.LoggedUser) dto.HealthApiResponseDTO
func (HealthService) GetOpenHealthService ¶
func (s HealthService) GetOpenHealthService() dto.HealthApiResponseDTO
type LoginService ¶
type LoginService struct {
// contains filtered or unexported fields
}
func NewLoginService ¶
func NewLoginService(conn *db.Connections) LoginService
func (LoginService) Login ¶
func (l LoginService) Login(loginDto dto.LoginDto) (string, *exceptions.Error)
func (LoginService) SignUp ¶
func (l LoginService) SignUp(signupDto dto.SignUpDto) (sqlDomain.Profile, *exceptions.Error)
type PortfolioService ¶
type PortfolioService struct {
// contains filtered or unexported fields
}
func NewPortfolioService ¶
func NewPortfolioService(ctx context.Context, c *db.Connections) PortfolioService
func (PortfolioService) AddProductInPortfolio ¶
func (s PortfolioService) AddProductInPortfolio(loggedUser middleware.LoggedUser, id int64) (nosqlDomain.Portfolio, error)
func (PortfolioService) CreatePortfolio ¶
func (s PortfolioService) CreatePortfolio(loggedUser middleware.LoggedUser) (nosqlDomain.Portfolio, error)
func (PortfolioService) DeletePortfolio ¶
func (s PortfolioService) DeletePortfolio(loggedUser middleware.LoggedUser) error
func (PortfolioService) GetPortfolio ¶
func (s PortfolioService) GetPortfolio(user middleware.LoggedUser) (nosqlDomain.Portfolio, error)
type ProfileService ¶
type ProfileService struct {
// contains filtered or unexported fields
}
func NewProfileService ¶
func NewProfileService(conections *db.Connections) ProfileService
func (ProfileService) FindProfileByUserId ¶
func (l ProfileService) FindProfileByUserId(id uint64) (sqlDomain.Profile, error)
func (ProfileService) SaveProfileUser ¶
func (l ProfileService) SaveProfileUser(user sqlDomain.MotionUser, roles []sqlDomain.RoleEnum) (sqlDomain.Profile, error)
type SessionService ¶
type SessionService struct {
// contains filtered or unexported fields
}
func NewSessionService ¶
func NewSessionService(conn *db.Connections) SessionService
func (SessionService) SaveUserSession ¶
Click to show internal directories.
Click to hide internal directories.