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: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateReport01Request

type GenerateReport01Request struct {
	Status int8
	ToDT   time.Time
	FromDT time.Time
}

type GenerateReport02Request

type GenerateReport02Request struct {
	AssociateID primitive.ObjectID
	Status      int8
	ToDT        time.Time
	FromDT      time.Time
}

type GenerateReport03Request

type GenerateReport03Request struct {
	Status int8
	ToDT   time.Time
	FromDT time.Time
}

type GenerateReport04Request

type GenerateReport04Request struct {
	Status int8
	ToDT   time.Time
	FromDT time.Time
}

type GenerateReport05Request

type GenerateReport05Request struct{}

type GenerateReport06Request

type GenerateReport06Request struct{}

type GenerateReport07Request

type GenerateReport07Request struct {
	Status int8
}

type GenerateReport08Request

type GenerateReport08Request struct {
	AssociateID primitive.ObjectID
	Status      int8
	ToDT        time.Time
	FromDT      time.Time
}

type GenerateReport09Request

type GenerateReport09Request struct{}

type GenerateReport10Request

type GenerateReport10Request struct {
	Status int8
	ToDT   time.Time
	FromDT time.Time
}

type GenerateReport11Request

type GenerateReport11Request struct {
	Status int8
	ToDT   time.Time
	FromDT time.Time
}

type GenerateReport12Request

type GenerateReport12Request struct {
}

type GenerateReport13Request

type GenerateReport13Request struct {
	SkillSetIDs []primitive.ObjectID
	Status      int8
	ToDT        time.Time
	FromDT      time.Time
}

type GenerateReport15Request

type GenerateReport15Request struct {
	ExpiryDateType   int8
	DaysBeforeExpiry int
}

type GenerateReport16Request

type GenerateReport16Request struct {
	UserType int8
	ToDT     time.Time
	FromDT   time.Time
}

type GenerateReport17Request

type GenerateReport17Request struct {
	UserType int8
	ToDT     time.Time
	FromDT   time.Time
}

type GenerateReport19Request

type GenerateReport19Request struct {
	TagIDs []primitive.ObjectID
	Status int8
	ToDT   time.Time
	FromDT time.Time
}

type GenerateReport20Request

type GenerateReport20Request struct {
	ToDT   time.Time
	FromDT time.Time
}

type GenerateReport21Request

type GenerateReport21Request struct{}

type GenerateReport22Request

type GenerateReport22Request struct {
	TagIDs []primitive.ObjectID
	Status int8
	ToDT   time.Time
	FromDT time.Time
}

type ReportController

type ReportController interface {
	GenerateReport001(ctx context.Context, req *GenerateReport01Request) ([][]string, error)
	GenerateReport002(ctx context.Context, req *GenerateReport02Request) ([][]string, error)
	GenerateReport003(ctx context.Context, req *GenerateReport03Request) ([][]string, error)
	GenerateReport004(ctx context.Context, req *GenerateReport04Request) ([][]string, error)
	GenerateReport005(ctx context.Context, req *GenerateReport05Request) ([][]string, error)
	GenerateReport006(ctx context.Context, req *GenerateReport06Request) ([][]string, error)
	GenerateReport007(ctx context.Context, req *GenerateReport07Request) ([][]string, error)
	GenerateReport008(ctx context.Context, req *GenerateReport08Request) ([][]string, error)
	GenerateReport009(ctx context.Context, req *GenerateReport09Request) ([][]string, error)
	GenerateReport010(ctx context.Context, req *GenerateReport10Request) ([][]string, error)
	GenerateReport011(ctx context.Context, req *GenerateReport11Request) ([][]string, error)
	GenerateReport012(ctx context.Context, req *GenerateReport12Request) ([][]string, error)
	GenerateReport013(ctx context.Context, req *GenerateReport13Request) ([][]string, error)
	GenerateReport015(ctx context.Context, req *GenerateReport15Request) ([][]string, error)
	GenerateReport016(ctx context.Context, req *GenerateReport16Request) ([][]string, error)
	GenerateReport017(ctx context.Context, req *GenerateReport17Request) ([][]string, error)
	GenerateReport019(ctx context.Context, req *GenerateReport19Request) ([][]string, error)
	GenerateReport020(ctx context.Context, req *GenerateReport20Request) ([][]string, error)
	GenerateReport021(ctx context.Context, req *GenerateReport21Request) ([][]string, error)
	GenerateReport022(ctx context.Context, req *GenerateReport22Request) ([][]string, error)
}

ReportController Interface for customer business logic controller.

func NewController

func NewController(
	appCfg *config.Conf,
	loggerp *slog.Logger,
	uuidp uuid.Provider,
	s3 s3_storage.S3Storager,
	passwordp password.Provider,
	kmux kmutex.Provider,
	temailer templatedemailer.TemplatedEmailer,
	client *mongo.Client,
	ai_builder pdfbuilder.AssociateInvoiceBuilder,
	com_storer com_s.CommentStorer,
	hh_storer hh_s.HowHearAboutUsItemStorer,
	skillset_s ss_s.SkillSetStorer,
	t_storer t_s.TagStorer,
	ti_storer ti_s.TaskItemStorer,
	usr_storer user_s.UserStorer,
	c_storer c_s.CustomerStorer,
	a_storer a_s.AssociateStorer,
	o_storer o_s.OrderStorer,
	servicefee_s servicefee_s.ServiceFeeStorer,
	act_storer act_s.ActivitySheetStorer,
	attch_storer attachment_s.AttachmentStorer,
	staff_storer s_s.StaffStorer,
) ReportController

type ReportControllerImpl

type ReportControllerImpl struct {
	Config                  *config.Conf
	Logger                  *slog.Logger
	UUID                    uuid.Provider
	S3                      s3_storage.S3Storager
	Password                password.Provider
	Kmutex                  kmutex.Provider
	TemplatedEmailer        templatedemailer.TemplatedEmailer
	DbClient                *mongo.Client
	AssociateInvoiceBuilder pdfbuilder.AssociateInvoiceBuilder
	CommentStorer           com_s.CommentStorer
	HowHearStorer           hh_s.HowHearAboutUsItemStorer
	TagStorer               t_s.TagStorer
	UserStorer              user_s.UserStorer
	CustomerStorer          c_s.CustomerStorer
	AssociateStorer         a_s.AssociateStorer
	OrderStorer             o_s.OrderStorer
	SkillSetStorer          ss_s.SkillSetStorer
	TaskItemStorer          ti_s.TaskItemStorer
	ServiceFeeStorer        servicefee_s.ServiceFeeStorer
	ActivitySheetStorer     act_s.ActivitySheetStorer
	AttachmentStorer        attachment_s.AttachmentStorer
	StaffStorer             s_s.StaffStorer
}

func (*ReportControllerImpl) GenerateReport001

func (c *ReportControllerImpl) GenerateReport001(ctx context.Context, req *GenerateReport01Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport002

func (c *ReportControllerImpl) GenerateReport002(ctx context.Context, req *GenerateReport02Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport003

func (c *ReportControllerImpl) GenerateReport003(ctx context.Context, req *GenerateReport03Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport004

func (c *ReportControllerImpl) GenerateReport004(ctx context.Context, req *GenerateReport04Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport005

func (c *ReportControllerImpl) GenerateReport005(ctx context.Context, req *GenerateReport05Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport006

func (c *ReportControllerImpl) GenerateReport006(ctx context.Context, req *GenerateReport06Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport007

func (c *ReportControllerImpl) GenerateReport007(ctx context.Context, req *GenerateReport07Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport008

func (c *ReportControllerImpl) GenerateReport008(ctx context.Context, req *GenerateReport08Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport009

func (c *ReportControllerImpl) GenerateReport009(ctx context.Context, req *GenerateReport09Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport010

func (c *ReportControllerImpl) GenerateReport010(ctx context.Context, req *GenerateReport10Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport011

func (c *ReportControllerImpl) GenerateReport011(ctx context.Context, req *GenerateReport11Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport012

func (c *ReportControllerImpl) GenerateReport012(ctx context.Context, req *GenerateReport12Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport013

func (c *ReportControllerImpl) GenerateReport013(ctx context.Context, req *GenerateReport13Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport015

func (c *ReportControllerImpl) GenerateReport015(ctx context.Context, req *GenerateReport15Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport016

func (c *ReportControllerImpl) GenerateReport016(ctx context.Context, req *GenerateReport16Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport017

func (c *ReportControllerImpl) GenerateReport017(ctx context.Context, req *GenerateReport17Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport019

func (c *ReportControllerImpl) GenerateReport019(ctx context.Context, req *GenerateReport19Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport020

func (c *ReportControllerImpl) GenerateReport020(ctx context.Context, req *GenerateReport20Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport021

func (c *ReportControllerImpl) GenerateReport021(ctx context.Context, req *GenerateReport21Request) ([][]string, error)

func (*ReportControllerImpl) GenerateReport022

func (c *ReportControllerImpl) GenerateReport022(ctx context.Context, req *GenerateReport22Request) ([][]string, error)

Jump to

Keyboard shortcuts

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