Documentation ¶
Index ¶
- Constants
- func NewCtmsUseCase(cfg *configs.Configs, examschedulesUS examschedules.UseCase, ...) ctms.UseCase
- type CtmsUS
- func (c *CtmsUS) ForceLogout(ctx context.Context, subscribedId string) error
- func (c *CtmsUS) GetDailySchedule(ctx context.Context, cookie string) ([]*types.DailySchedule, error)
- func (c *CtmsUS) GetExamSchedule(ctx context.Context, cookie string) ([]types.ExamSchedule, error)
- func (c *CtmsUS) GetUpcomingExamSchedule(ctx context.Context, user *types.LoginCtmsRequest) (types.GetUpcomingExamScheduleResponse, error)
- func (c *CtmsUS) LoginCtms(ctx context.Context, user *types.LoginCtmsRequest) (*types.LoginCtmsResponse, error)
- func (c *CtmsUS) LogoutCtms(ctx context.Context, cookie string) error
- func (c *CtmsUS) SendChangedExamScheduleAndNewExamScheduleToUser(ctx context.Context, user *types.LoginCtmsRequest, id string) error
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 ¶
Types ¶
type CtmsUS ¶
type CtmsUS struct {
// contains filtered or unexported fields
}
func (*CtmsUS) ForceLogout ¶
func (*CtmsUS) GetDailySchedule ¶
func (*CtmsUS) GetExamSchedule ¶
func (*CtmsUS) GetUpcomingExamSchedule ¶
func (c *CtmsUS) GetUpcomingExamSchedule(ctx context.Context, user *types.LoginCtmsRequest) (types.GetUpcomingExamScheduleResponse, error)
func (*CtmsUS) LoginCtms ¶
func (c *CtmsUS) LoginCtms(ctx context.Context, user *types.LoginCtmsRequest) (*types.LoginCtmsResponse, error)
func (*CtmsUS) SendChangedExamScheduleAndNewExamScheduleToUser ¶
Click to show internal directories.
Click to hide internal directories.