module

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoInfo = atdb.DBInfo{
	DBString: MongoString,
	DBName:   "be_tagihan",
}
View Source
var MongoString string = os.Getenv("MONGOSTRING")

Functions

func GetAllBank added in v0.0.2

func GetAllBank(db *mongo.Database, col string) (bank []model.Bank)

GET ALL

func GetAllTagihanFromNama_nasabah

func GetAllTagihanFromNama_nasabah(nama_nasabah string, db *mongo.Database, col string) (tagihan []model.Tagihan)

func GetBankFromNama_bank

func GetBankFromNama_bank(nama_bank string, col string, db *mongo.Database) (bank model.Bank)

func GetNasabahFromNama

func GetNasabahFromNama(nama_nasabah string, col string, db *mongo.Database) (nasabah model.Nasabah)

func GetPenagihFromNama

func GetPenagihFromNama(nama_penagih string, col string, db *mongo.Database) (penagih model.Penagih)

func GetTagihanFromNama_nasabah

func GetTagihanFromNama_nasabah(nama_nasabah string, col string, db *mongo.Database) (tagihan model.Tagihan)

func InsertBank

func InsertBank(db *mongo.Database, col string, nama_bank string, lokasi string, daftar model.Penagih) (InsertedID interface{})

BANK

func InsertNasabah

func InsertNasabah(db *mongo.Database, col string, nama_nasabah string, email string, phone_number string, alamat string) (InsertedID interface{})

NASABAH

func InsertOneDoc

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

func InsertPenagih

func InsertPenagih(db *mongo.Database, col string, nama_penagih string, email string, phone_number string, total_tagihan model.Tagihan) (InsertedID interface{})

func InsertTagihan

func InsertTagihan(db *mongo.Database, col string, total_tagihan string, deskripsi string, status string, tanggal_jatuhtempo string, biodata model.Nasabah, location string, longitude float64, latitude float64) (InsertedID interface{})

TAGIHAN

Types

This section is empty.

Jump to

Keyboard shortcuts

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