model

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin added in v0.0.11

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 added in v0.0.2

type Answer struct {
	Question_Nomor int    `bson:"question_nomor,omitempty" json:"question_nomor,omitempty"`
	Text2          string `bson:"text2,omitempty" json:"text2,omitempty"`
}

type Kuesioner

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

type Lokasi struct {
	ID   primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama string             `bson:"nama,omitempty" json:"nama,omitempty"`
	// Batas    Geometry           `bson:"batas,omitempty" json:"batas,omitempty"`
	Kategori string `bson:"kategori,omitempty" json:"kategori,omitempty"`
}

type Question added in v0.0.2

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

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 added in v0.0.2

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"`
}

Jump to

Keyboard shortcuts

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