controller

package
v0.0.0-...-5e664b8 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgramCategoryController

ProgramCategoryController Interface for programcategory 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,
	usr_storer user_s.UserStorer,
	programcategory_s programcategory_s.ProgramCategoryStorer,
) ProgramCategoryController

type ProgramCategoryControllerImpl

type ProgramCategoryControllerImpl 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
	ProgramCategoryStorer programcategory_s.ProgramCategoryStorer
	TemplatedEmailer      templatedemailer.TemplatedEmailer
}

func (*ProgramCategoryControllerImpl) ArchiveByID

func (*ProgramCategoryControllerImpl) Create

func (*ProgramCategoryControllerImpl) DeleteByID

func (*ProgramCategoryControllerImpl) GetByID

func (*ProgramCategoryControllerImpl) UpdateByID

type ProgramCategoryCreateRequestIDO

type ProgramCategoryCreateRequestIDO struct {
	Name           string `bson:"name" json:"name"`
	Description    string `bson:"description" json:"description"`
	SortNumber     int8   `bson:"sort_number" json:"sort_number"`
	IsForAssociate bool   `bson:"is_for_associate" json:"is_for_associate"`
	IsForCustomer  bool   `bson:"is_for_customer" json:"is_for_customer"`
	IsForStaff     bool   `bson:"is_for_staff" json:"is_for_staff"`
}

type ProgramCategoryUpdateRequestIDO

type ProgramCategoryUpdateRequestIDO struct {
	ID          primitive.ObjectID `bson:"id" json:"id"`
	Name        string             `bson:"name" json:"name"`
	Description string             `bson:"description" json:"description"`
	SortNumber  int8               `bson:"sort_number" json:"sort_number"`
}

Jump to

Keyboard shortcuts

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