Documentation ¶
Index ¶
- Constants
- Variables
- func DailyScheduleMessage(message string, dailySchedule *types.DailySchedule) string
- func ExamScheduleMessage(message string, examSchedule types.ExamSchedule) string
- func FormatDateTimeToGetDailySchedule() string
- func GetClassStatus(status string, session string) string
- func HelpScript() string
- func IsExamScheduleExisted(oldExamSchedule, newExamSchedule types.ExamSchedule) bool
- func IsExamScheduleRoomChanged(oldExamSchedule, newExamSchedule types.ExamSchedule) bool
- func IsExamScheduleTimeChanged(oldExamSchedule, newExamSchedule types.ExamSchedule) bool
- func IsTomorrow(dateString string) bool
- func TodayFormatted() string
- func ValidateStruct(ctx context.Context, s interface{}) error
- type CommandType
- type ErrorResponse
- type PaginationQuery
Constants ¶
View Source
const ( STUDY = "Học" STUDY_ONLINE = "Học trực tuyến" REST = "Nghỉ" EXAM = "Thi" EXTRACURRICULAR = "Ngoại khoá" )
Variables ¶
View Source
var Command = CommandType{
Login: "/login",
Remove: "/remove",
Help: "/help",
Examday: "/examday",
UnExamday: "/un_examday",
ForceLogout: "/force_logout",
}
Functions ¶
func DailyScheduleMessage ¶
func DailyScheduleMessage(message string, dailySchedule *types.DailySchedule) string
func ExamScheduleMessage ¶
func ExamScheduleMessage(message string, examSchedule types.ExamSchedule) string
func FormatDateTimeToGetDailySchedule ¶
func FormatDateTimeToGetDailySchedule() string
func GetClassStatus ¶
func HelpScript ¶
func HelpScript() string
func IsExamScheduleExisted ¶
func IsExamScheduleExisted(oldExamSchedule, newExamSchedule types.ExamSchedule) bool
func IsExamScheduleRoomChanged ¶
func IsExamScheduleRoomChanged(oldExamSchedule, newExamSchedule types.ExamSchedule) bool
func IsExamScheduleTimeChanged ¶
func IsExamScheduleTimeChanged(oldExamSchedule, newExamSchedule types.ExamSchedule) bool
func IsTomorrow ¶
func TodayFormatted ¶
func TodayFormatted() string
func ValidateStruct ¶
Validate struct fields
Types ¶
type CommandType ¶
type ErrorResponse ¶
type ErrorResponse struct { Message string `json:"message"` Errors map[string]interface{} `json:"errors"` }
func ShowErrors ¶
func ShowErrors(err error) ErrorResponse
type PaginationQuery ¶
Click to show internal directories.
Click to hide internal directories.