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

Documentation

Index

Constants

View Source
const SCHOOL_SCHEDULE_URL = "http://ctms.fithou.net.vn/Lichhoc.aspx?sid="
View Source
const SESSION_EXPIRED_MESSAGE = "Phiên làm việc hết hạn hoặc Bạn không có quyền truy cập chức năng này"

Variables

This section is empty.

Functions

func NewCtmsUseCase

func NewCtmsUseCase(cfg *configs.Configs, examschedulesUS examschedules.UseCase, facebookUS facebook.UseCase, userUS users.UseCase, cookieUC cookies.UseCase) ctms.UseCase

Types

type CtmsUS

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

func (*CtmsUS) ForceLogout

func (c *CtmsUS) ForceLogout(ctx context.Context, subscribedId string) error

func (*CtmsUS) GetDailySchedule

func (c *CtmsUS) GetDailySchedule(ctx context.Context, cookie string) ([]*types.DailySchedule, error)

func (*CtmsUS) GetExamSchedule

func (c *CtmsUS) GetExamSchedule(ctx context.Context, cookie string) ([]types.ExamSchedule, error)

func (*CtmsUS) GetUpcomingExamSchedule

func (c *CtmsUS) GetUpcomingExamSchedule(ctx context.Context, user *types.LoginCtmsRequest) (types.GetUpcomingExamScheduleResponse, error)

func (*CtmsUS) LoginCtms

func (*CtmsUS) LogoutCtms

func (c *CtmsUS) LogoutCtms(ctx context.Context, cookie string) error

func (*CtmsUS) SendChangedExamScheduleAndNewExamScheduleToUser

func (c *CtmsUS) SendChangedExamScheduleAndNewExamScheduleToUser(ctx context.Context, user *types.LoginCtmsRequest, id string) error

Jump to

Keyboard shortcuts

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