Documentation ¶
Index ¶
- func InsertCritics(db *mongo.Database, name, value string) (InsertedID interface{})
- func InsertDataComp(db *mongo.Database, sistem string, status string, bio User) (InsertedID interface{})
- func InsertDataHelper(helper string, username string, nama string, email string, handphone string, ...) (InsertedID interface{})
- func InsertJumlahComplain(db *mongo.Database, collect string, bulan string, tahun string, jumlah string) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- type Critics
- type DataComplain
- type Helper
- type JumlahComplain
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertCritics ¶ added in v0.1.16
func InsertDataComp ¶
func InsertDataHelper ¶
func InsertJumlahComplain ¶ added in v0.1.5
func InsertOneDoc ¶
Types ¶
type DataComplain ¶
type DataComplain struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Sistemcomp string `bson:"sistemcomp,omitempty" json:"sistemcomp,omitempty"` Status string `bson:"status,omitempty" json:"status,omitempty"` Biodata User `bson:"user,omitempty" json:"user,omitempty"` }
func GetDataAllbyStats ¶
func GetDataAllbyStats(stats string, db *mongo.Database, col string) (data []DataComplain)
func GetDataCompFromHandphone ¶ added in v0.1.4
func GetDataCompFromHandphone(phone string, db *mongo.Database, col string) (data DataComplain)
func GetDataCompFromStatus ¶
func GetDataCompFromStatus(status string, db *mongo.Database, col string) (data DataComplain)
type Helper ¶
type Helper struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Helpid string `bson:"helpid,omitempty" json:"helpid,omitempty"` Username string `bson:"username,omitempty" json:"username,omitempty"` Nama string `bson:"nama,omitempty" json:"nama,omitempty"` Email string `bson:"email,omitempty" json:"email,omitempty"` Handphone string `bson:"handphone,omitempty" json:"handphone,omitempty"` }
func DeleteDataHelper ¶
type JumlahComplain ¶ added in v0.1.5
type JumlahComplain struct { Tahun string `bson:"tahun,omitempty" json:"tahun,omitempty"` Bulan string `bson:"bulan,omitempty" json:"bulan,omitempty"` Jumlah string `bson:"jumlah,omitempty" json:"jumlah,omitempty"` }
func GetDataJumlah ¶ added in v0.1.5
func GetDataJumlah(tahun string, db *mongo.Database, col string) (data []JumlahComplain)
Click to show internal directories.
Click to hide internal directories.