models

package
v0.0.0-...-75e61ff Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	ClassID        string    `json:"classId" bson:"class_id"`
	NameTH         string    `json:"nameTh" bson:"name_th"`
	NameEN         string    `json:"nameEn" bson:"name_en"`
	Label          string    `json:"label" bson:"label"`
	Hours          string    `json:"hours" bson:"hours"`
	Unit           uint64    `json:"unit" bson:"unit"`
	NumberReviewer float64   `json:"numberReviewer" bson:"number_reviewer"`
	Stats          StatClass `json:"stats" bson:"stats"`
}

type OldClass

type OldClass struct {
	Value string `json:"value"`
	Label string `json:"label"`
}

type RDeleteReview

type RDeleteReview struct {
	ID   string `json:"reviewId" bson:"_id"`
	Auth string `json:"auth" bson:"auth"`
}

type Report

type Report struct {
	ReviewID  string    `json:"reviewId" bson:"review_id"`
	ClassID   string    `json:"classId" bson:"class_id"`
	Text      string    `json:"text" bson:"text"`
	CreatedAt time.Time `json:"createdAt" bson:"created_at"`
}

type ResReview

type ResReview struct {
	ID          bson.ObjectId `json:"reviewId" bson:"_id"`
	ClassID     string        `json:"classId" bson:"class_id"`
	Text        string        `json:"text" bson:"text"`
	Author      string        `json:"author" bson:"author"`
	Grade       string        `json:"grade" bson:"grade"`
	Clap        uint64        `json:"clap" bson:"clap"`
	Boo         uint64        `json:"boo" bson:"boo"`
	ClassNameTH string        `json:"classNameTH" bson:"class_name_th"`
	ClassNameEN string        `json:"classNameEN" bson:"class_name_en"`
	CreatedAt   time.Time     `json:"createdAt" bson:"created_at"`
	UpdateAt    time.Time     `json:"updateAt" bson:"update_at"`
	Reported    bool          `json:"reported" bson:"reported"`
}

type Review

type Review struct {
	ID          bson.ObjectId `json:"reviewId" bson:"_id"`
	ClassID     string        `json:"classId" bson:"class_id"`
	Text        string        `json:"text" bson:"text"`
	Author      string        `json:"author" bson:"author"`
	Grade       string        `json:"grade" bson:"grade"`
	Auth        string        `json:"auth,omitempty" bson:"auth"`
	Clap        uint64        `json:"clap" bson:"clap"`
	Boo         uint64        `json:"boo" bson:"boo"`
	Stats       StatReview    `json:"stats" bson:"stats"`
	ClassNameTH string        `json:"classNameTH" bson:"class_name_th"`
	ClassNameEN string        `json:"classNameEN" bson:"class_name_en"`
	CreatedAt   time.Time     `json:"createdAt" bson:"created_at"`
	UpdateAt    time.Time     `json:"updateAt" bson:"update_at"`
	Reported    bool          `json:"reported" bson:"reported"`
}

type StatClass

type StatClass struct {
	How      float64   `json:"how" bson:"how"`
	Homework float64   `json:"homework" bson:"homework"`
	Interest float64   `json:"interest" bson:"interest"`
	UpdateAt time.Time `json:"updateAt" bson:"update_at"`
}

type StatReview

type StatReview struct {
	How      float64 `json:"how" bson:"how"`
	Homework float64 `json:"homework" bson:"homework"`
	Interest float64 `json:"interest" bson:"interest"`
}

Jump to

Keyboard shortcuts

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