db

package
v0.0.0-...-30169d8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Driver  neo4j.Driver
	Session neo4j.Session
)

Functions

func CreateAlert

func CreateAlert(
	studentID int,
	alert map[string]interface{},
) (map[string]interface{}, error)

func CreateClass

func CreateClass(classID int64, name string) (map[string]interface{}, error)

func CreateHomework

func CreateHomework(data map[string]interface{}) (map[string]interface{}, error)

func CreateSchedule

func CreateSchedule(studentID int, data []string) (map[string]interface{}, error)

func CreateStudent

func CreateStudent(user *tb.User, classID int64) (map[string]interface{}, error)

func CreateTimetable

func CreateTimetable(studentID int, scheduleID int64, data map[time.Weekday][]string) (map[string]interface{}, error)

func DialogueState

func DialogueState(studentID int) (int8, error)

func Init

func Init() error

func QueryAlert

func QueryAlert(studentID int) ([]map[string]interface{}, error)

func QueryClassStudents

func QueryClassStudents(studentID int) ([]map[string]interface{}, error)

func QueryHomework

func QueryHomework(studentID int) ([]map[string]interface{}, error)

func SetDialogueState

func SetDialogueState(studentID int, state int8) error

func StudentSession

func StudentSession(studentID int) (map[string]interface{}, error)

func StudentTimetable

func StudentTimetable(studentID int) ([]map[string]interface{}, error)

func UpdateStudentSession

func UpdateStudentSession(data map[string]interface{}) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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