Documentation ¶
Index ¶
- type BulletinController
- type BulletinControllerImpl
- func (impl *BulletinControllerImpl) Create(ctx context.Context, req *BulletinCreateRequestIDO) (*bulletin_s.Bulletin, error)
- func (impl *BulletinControllerImpl) DeleteByID(ctx context.Context, id primitive.ObjectID) error
- func (impl *BulletinControllerImpl) GetByID(ctx context.Context, id primitive.ObjectID) (*bul_s.Bulletin, error)
- func (c *BulletinControllerImpl) ListAndCountByFilter(ctx context.Context, f *bul_s.BulletinPaginationListFilter) (*bul_s.BulletinPaginationListAndCountResult, error)
- func (impl *BulletinControllerImpl) UpdateByID(ctx context.Context, req *BulletinUpdateRequestIDO) (*bulletin_s.Bulletin, error)
- type BulletinCreateRequestIDO
- type BulletinUpdateRequestIDO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulletinController ¶
type BulletinController interface { Create(ctx context.Context, req *BulletinCreateRequestIDO) (*bulletin_s.Bulletin, error) GetByID(ctx context.Context, id primitive.ObjectID) (*bulletin_s.Bulletin, error) UpdateByID(ctx context.Context, req *BulletinUpdateRequestIDO) (*bulletin_s.Bulletin, error) ListAndCountByFilter(ctx context.Context, f *bulletin_s.BulletinPaginationListFilter) (*bulletin_s.BulletinPaginationListAndCountResult, error) DeleteByID(ctx context.Context, id primitive.ObjectID) error }
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 (impl *BulletinControllerImpl) Create(ctx context.Context, req *BulletinCreateRequestIDO) (*bulletin_s.Bulletin, error)
func (*BulletinControllerImpl) DeleteByID ¶
func (*BulletinControllerImpl) ListAndCountByFilter ¶
func (c *BulletinControllerImpl) ListAndCountByFilter(ctx context.Context, f *bul_s.BulletinPaginationListFilter) (*bul_s.BulletinPaginationListAndCountResult, error)
func (*BulletinControllerImpl) UpdateByID ¶
func (impl *BulletinControllerImpl) UpdateByID(ctx context.Context, req *BulletinUpdateRequestIDO) (*bulletin_s.Bulletin, error)
type BulletinCreateRequestIDO ¶
type BulletinCreateRequestIDO struct {
Text string `json:"text"`
}
Click to show internal directories.
Click to hide internal directories.