Discover Packages
github.com/stefanymelda/be_kuesioner
model
package
Version:
v0.0.14
Opens a new window with list of versions in this module.
Published: Jul 8, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Admin struct {
ID primitive .ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Username string `bson:"username,omitempty" json:"username,omitempty"`
Password string `bson:"password,omitempty" json:"password,omitempty"`
}
type Answer struct {
Question_Nomor int `bson:"question_nomor,omitempty" json:"question_nomor,omitempty"`
Text2 string `bson:"text2,omitempty" json:"text2,omitempty"`
}
type Kuesioner struct {
ID primitive .ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Longitude float64 `bson:"longitude,omitempty" json:"longitude,omitempty"`
Latitude float64 `bson:"latitude,omitempty" json:"latitude,omitempty"`
Location string `bson:"location,omitempty" json:"location,omitempty"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
Datetime primitive .DateTime `bson:"datetime,omitempty" json:"datetime,omitempty"`
Status string `bson:"status,omitempty" json:"status,omitempty"`
Biodata Responden `bson:"biodata,omitempty" json:"biodata,omitempty"`
}
type Lokasi struct {
ID primitive .ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Nama string `bson:"nama,omitempty" json:"nama,omitempty"`
Kategori string `bson:"kategori,omitempty" json:"kategori,omitempty"`
}
type Question struct {
ID primitive .ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Nomor int `bson:"nomor,omitempty" json:"nomor,omitempty"`
Text string `bson:"text,omitempty" json:"text,omitempty"`
Options string `bson:"options,omitempty" json:"options,omitempty"`
}
type Responden struct {
ID primitive .ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Nama string `bson:"nama,omitempty" json:"nama,omitempty"`
Jenis_kelamin string `bson:"jenis_kelamin,omitempty" json:"jenis_kelamin,omitempty"`
Usia int `bson:"usia,omitempty" json:"usia,omitempty"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
Phone_number string `bson:"phone_number,omitempty" json:"phone_number,omitempty"`
}
type Survey struct {
ID primitive .ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Kode int `bson:"kode,omitempty" json:"kode,omitempty"`
Title string `bson:"title,omitempty" json:"title,omitempty"`
Soal Question `bson:"soal,omitempty" json:"soal,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.