hdbackend

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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 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 InsertOneDoc

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

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 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 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