Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardController ¶
type DashboardController interface {
Dashboard(ctx context.Context) (*DashboardResponseIDO, error)
}
func NewController ¶
func NewController( appCfg *config.Conf, loggerp *slog.Logger, uuidp uuid.Provider, jwtp jwt.Provider, passwordp password.Provider, cache mongodbcache.Cacher, te templatedemailer.TemplatedEmailer, usr_storer user_s.UserStorer, org_storer tenant_s.TenantStorer, cus_storer customer_s.CustomerStorer, as_storer associate_s.AssociateStorer, asl_storer away_s.AssociateAwayLogStorer, o_storer o_s.OrderStorer, ti_storer taskitem_s.TaskItemStorer, b_storer b_s.BulletinStorer, com_storer comm_s.CommentStorer, ) DashboardController
type DashboardControllerImpl ¶
type DashboardControllerImpl struct { Config *config.Conf Logger *slog.Logger UUID uuid.Provider JWT jwt.Provider Password password.Provider Cache mongodbcache.Cacher TemplatedEmailer templatedemailer.TemplatedEmailer UserStorer user_s.UserStorer TenantStorer tenant_s.TenantStorer CustomerStorer customer_s.CustomerStorer AssociateStorer associate_s.AssociateStorer AssociateAwayLogStorer away_s.AssociateAwayLogStorer OrderStorer o_s.OrderStorer TaskItemStorer taskitem_s.TaskItemStorer BulletinStorer b_s.BulletinStorer CommentStorer comm_s.CommentStorer }
func (*DashboardControllerImpl) Dashboard ¶
func (impl *DashboardControllerImpl) Dashboard(ctx context.Context) (*DashboardResponseIDO, error)
type DashboardResponseIDO ¶
type DashboardResponseIDO struct { ClientsCount int64 `json:"clients_count"` AssociatesCount int64 `json:"associates_count"` JobsCount int64 `json:"jobs_count"` TasksCount int64 `json:"tasks_count"` Bulletins []*b_s.Bulletin `json:"bulletins"` AssociateAwayLogs []*away_s.AssociateAwayLog `json:"associate_away_logs"` }
Click to show internal directories.
Click to hide internal directories.