usecase

package
v0.0.0-...-cbf5b65 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommonUseCase

func NewCommonUseCase(cfg *configs.Configs, facebookUS facebook.UseCase, ctmsUC ctms.UseCase, userUC users.UseCase, articleUC articles.UseCase, cookieUC cookies.UseCase) common.UseCase

Types

type CommonUS

type CommonUS struct {
	// contains filtered or unexported fields
}

func (*CommonUS) AddCtmsTimetableService

func (us *CommonUS) AddCtmsTimetableService(ctx context.Context, id string) error

func (*CommonUS) AddFithouCrawlService

func (us *CommonUS) AddFithouCrawlService(ctx context.Context, id string) error

func (*CommonUS) CancelGetNotificationOfExamSchedule

func (us *CommonUS) CancelGetNotificationOfExamSchedule(ctx context.Context, id string) error

func (*CommonUS) ChatScript

func (us *CommonUS) ChatScript(ctx context.Context, id string, msg string)

func (*CommonUS) GetNotificationOfExamSchedule

func (us *CommonUS) GetNotificationOfExamSchedule(ctx context.Context, id string) error

func (*CommonUS) HandleFacebookWebhook

func (us *CommonUS) HandleFacebookWebhook(ctx context.Context, data *types.FacebookWebhookRequest) error

func (*CommonUS) RemoveCtmsTimetableService

func (us *CommonUS) RemoveCtmsTimetableService(ctx context.Context, id string) error

func (*CommonUS) RemoveFithouCrawlService

func (us *CommonUS) RemoveFithouCrawlService(ctx context.Context, id string) error

func (*CommonUS) RemoveUser

func (us *CommonUS) RemoveUser(ctx context.Context, id string) error

func (*CommonUS) SendLoginCtmsButton

func (us *CommonUS) SendLoginCtmsButton(ctx context.Context, id string) error

func (*CommonUS) VerifyFacebookWebhook

func (us *CommonUS) VerifyFacebookWebhook(ctx context.Context, token, challenge string) (string, error)

Jump to

Keyboard shortcuts

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