hdbackend

package module
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 5 Imported by: 1

README

Helpdesk data backend

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertCritics added in v0.1.16

func InsertCritics(db *mongo.Database, name, value string) (InsertedID interface{})

func InsertDataComp

func InsertDataComp(db *mongo.Database, sistem string, status string, bio User) (InsertedID interface{})

func InsertDataHelper

func InsertDataHelper(helper string, username string, nama string, email string, handphone string, db *mongo.Database, col string) (InsertedID interface{})

func InsertJumlahComplain added in v0.1.5

func InsertJumlahComplain(db *mongo.Database, collect string, bulan string, tahun string, jumlah string) (InsertedID interface{})

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})

Types

type Critics added in v0.1.16

type Critics struct {
	Name      string `bson:"name" json:"name"`
	CriticVal string `bson:"critics" json:"critics"`
}

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

func DeleteDataHelper(phone string, db *mongo.Database, col string) (data Helper)

func GetDataHelperFromPhone

func GetDataHelperFromPhone(phone string, db *mongo.Database, col string) (data Helper)

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)

type User

type User struct {
	ID        primitive.ObjectID `bson:"_id,omitempty" json:"_id,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"`
}

Jump to

Keyboard shortcuts

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