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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceFeeController

ServiceFeeController Interface for servicefee business logic controller.

func NewController

func NewController(
	appCfg *config.Conf,
	loggerp *slog.Logger,
	uuidp uuid.Provider,
	s3 s3_storage.S3Storager,
	kmux kmutex.Provider,
	passwordp password.Provider,
	temailer templatedemailer.TemplatedEmailer,
	client *mongo.Client,
	usr_storer user_s.UserStorer,
	o_storer o_s.OrderStorer,
	ti_storer ti_s.TaskItemStorer,
	servicefee_s servicefee_s.ServiceFeeStorer,
) ServiceFeeController

type ServiceFeeControllerImpl

type ServiceFeeControllerImpl struct {
	Config           *config.Conf
	Logger           *slog.Logger
	UUID             uuid.Provider
	S3               s3_storage.S3Storager
	Password         password.Provider
	Kmutex           kmutex.Provider
	DbClient         *mongo.Client
	UserStorer       user_s.UserStorer
	ServiceFeeStorer servicefee_s.ServiceFeeStorer
	OrderStorer      o_s.OrderStorer
	TaskItemStorer   ti_s.TaskItemStorer
	TemplatedEmailer templatedemailer.TemplatedEmailer
}

func (*ServiceFeeControllerImpl) ArchiveByID

func (*ServiceFeeControllerImpl) Create

func (*ServiceFeeControllerImpl) DeleteByID

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

func (*ServiceFeeControllerImpl) GetByID

func (*ServiceFeeControllerImpl) UpdateByID

type ServiceFeeCreateRequestIDO

type ServiceFeeCreateRequestIDO struct {
	Name        string  `bson:"name" json:"name"`
	Percentage  float64 `bson:"percentage" json:"percentage"`
	Description string  `bson:"description" json:"description"`
}

type ServiceFeeUpdateRequestIDO

type ServiceFeeUpdateRequestIDO struct {
	ID          primitive.ObjectID `bson:"_id" json:"id"`
	Name        string             `bson:"name" json:"name"`
	Percentage  float64            `bson:"percentage" json:"percentage"`
	Description string             `bson:"description" json:"description"`
}

Jump to

Keyboard shortcuts

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