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 RDeleteReview ¶
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 StatReview ¶
Click to show internal directories.
Click to hide internal directories.