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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulletinController

BulletinController Interface for associate business logic controller.

func NewController

func NewController(
	appCfg *config.Conf,
	loggerp *slog.Logger,
	uuidp uuid.Provider,
	s3 s3_storage.S3Storager,
	passwordp password.Provider,
	temailer templatedemailer.TemplatedEmailer,
	kmux kmutex.Provider,
	client *mongo.Client,
	com_storer com_s.CommentStorer,
	act_storer act_s.ActivitySheetStorer,
	task_storer task_s.TaskItemStorer,
	hh_storer hh_s.HowHearAboutUsItemStorer,
	skillset_s ss_s.SkillSetStorer,
	vehicletype_s vt_s.VehicleTypeStorer,
	servicefee_s servicefee_s.ServiceFeeStorer,
	insurancerequirement_s ir_s.InsuranceRequirementStorer,
	usr_storer user_s.UserStorer,
	t_storer t_s.TagStorer,
	ord_s o_s.OrderStorer,
	attch_storer attachment_s.AttachmentStorer,
	a_ctorer a_c.AssociateStorer,
	b_storer bulletin_s.BulletinStorer,
) BulletinController

type BulletinControllerImpl

type BulletinControllerImpl struct {
	Config                     *config.Conf
	Logger                     *slog.Logger
	UUID                       uuid.Provider
	S3                         s3_storage.S3Storager
	Password                   password.Provider
	TemplatedEmailer           templatedemailer.TemplatedEmailer
	Kmutex                     kmutex.Provider
	DbClient                   *mongo.Client
	CommentStorer              com_s.CommentStorer
	ActivitySheetStorer        act_s.ActivitySheetStorer
	TaskItemStorer             task_s.TaskItemStorer
	HowHearStorer              hh_s.HowHearAboutUsItemStorer
	SkillSetStorer             ss_s.SkillSetStorer
	VehicleTypeStorer          vt_s.VehicleTypeStorer
	TagStorer                  t_s.TagStorer
	ServiceFeeStorer           servicefee_s.ServiceFeeStorer
	InsuranceRequirementStorer ir_s.InsuranceRequirementStorer
	OrderStorer                o_s.OrderStorer
	AttachmentStorer           attachment_s.AttachmentStorer
	UserStorer                 user_s.UserStorer
	AssociateStorer            a_c.AssociateStorer
	BulletinStorer             bulletin_s.BulletinStorer
}

func (*BulletinControllerImpl) Create

func (*BulletinControllerImpl) DeleteByID

func (impl *BulletinControllerImpl) DeleteByID(ctx context.Context, id primitive.ObjectID) error

func (*BulletinControllerImpl) GetByID

func (*BulletinControllerImpl) UpdateByID

type BulletinCreateRequestIDO

type BulletinCreateRequestIDO struct {
	Text string `json:"text"`
}

type BulletinUpdateRequestIDO

type BulletinUpdateRequestIDO struct {
	ID   primitive.ObjectID `json:"id,omitempty"`
	Text string             `json:"text"`
}

Jump to

Keyboard shortcuts

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