inibackendriziq

package module
v0.0.12 Latest Latest
Warning

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

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

README

inibackendriziq

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoString string = os.Getenv("MONGOSTRING")

Functions

func InsertAbout

func InsertAbout(db string, about About) (insertedID interface{})

func InsertOneDoc

func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})

func InsertPelanggan

func InsertPelanggan(db string, pelanggan Pelanggan) (insertedID interface{})

func InsertPembayaran

func InsertPembayaran(db string, pembayaran Pembayaran) (insertedID interface{})

func InsertProduk

func InsertProduk(db string, produk Produk) (insertedID interface{})

func InsertTagihan

func InsertTagihan(db string, tagihan Tagihan) (insertedID interface{})

func MongoConnect

func MongoConnect(dbname string) (db *mongo.Database)

Types

type About

type About struct {
	ID      primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	IsiSatu string             `bson:"isisatu,omitempty" json:"isisatu,omitempty"`
	IsiDua  string             `bson:"isidua,omitempty" json:"isidua,omitempty"`
	Image   string             `bson:"image,omitempty" json:"image,omitempty"`
}

Tabel About

func GetDataAbout added in v0.0.2

func GetDataAbout(stats string) (data []About)

type Pelanggan

type Pelanggan struct {
	ID        primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Nama      string             `bson:"nama,omitempty" json:"nama,omitempty"`
	Alamat    string             `bson:"alamat,omitempty" json:"alamat,omitempty"`
	NoTelepon string             `bson:"no_telepon,omitempty" json:"no_telepon,omitempty"`
	Email     string             `bson:"email,omitempty" json:"email,omitempty"`
}

Tabel Pelanggan

func GetDataPelanggan added in v0.0.2

func GetDataPelanggan(stats string) (data []Pelanggan)

type Pembayaran

type Pembayaran struct {
	ID                primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	IDTagihan         primitive.ObjectID `bson:"id_tagihan,omitempty" json:"id_tagihan,omitempty"`
	TanggalPembayaran string             `bson:"tanggal_pembayaran,omitempty" json:"tanggal_pembayaran,omitempty"`
	JumlahPembayaran  string             `bson:"jumlah_pembayaran,omitempty" json:"jumlah_pembayaran,omitempty"`
	MetodePembayaran  string             `bson:"metode_pembayaran,omitempty" json:"metode_pembayaran,omitempty"`
}

Tabel Pembayaran

func GetDataPembayaran added in v0.0.2

func GetDataPembayaran(stats string) (data []Pembayaran)

type Produk

type Produk struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	NamaProduk  string             `bson:"nama_produk,omitempty" json:"nama_produk,omitempty"`
	HargaProduk string             `bson:"harga_produk,omitempty" json:"harga_produk,omitempty"`
}

Tabel Produk

func GetDataProduk added in v0.0.2

func GetDataProduk(stats string) (data []Produk)

type Tagihan

type Tagihan struct {
	ID               primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	IDPelanggan      primitive.ObjectID `bson:"id_pelanggan,omitempty" json:"id_pelanggan,omitempty"`
	TanggalTagihan   string             `bson:"tanggal_tagihan,omitempty" json:"tanggal_tagihan,omitempty"`
	TotalTagihan     string             `bson:"total_tagihan,omitempty" json:"total_tagihan,omitempty"`
	StatusPembayaran string             `bson:"status_pembayaran,omitempty" json:"status_pembayaran,omitempty"`
}

Tabel Tagihan

func GetDataTagihan added in v0.0.2

func GetDataTagihan(stats string) (data []Tagihan)

Jump to

Keyboard shortcuts

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