controller

package
v0.0.0-...-53e80a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

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)
}

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

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL