module

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetAllUang added in v0.0.7

func GetAllUang(db *mongo.Database, col string) (data []model.Uang)

func GetGajiFromNamaKaryawan

func GetGajiFromNamaKaryawan(nama string, db *mongo.Database, col string) (staf model.Uang)

func GetGajiFromPresensi added in v0.0.6

func GetGajiFromPresensi(phone_number string, db *mongo.Database, col string) (masuk model.Uang)

func GetKaryawanFromNama added in v0.0.2

func GetKaryawanFromNama(nama string, db *mongo.Database, col string) (masuk model.Karyawan)

func GetPresensiFromWaktu added in v0.0.2

func GetPresensiFromWaktu(tanggal string, db *mongo.Database, col string) (kehadiran model.Presensi)

func InsertBendahara

func InsertBendahara(db *mongo.Database, col string, nama string, email string, phone_number string, hari string, biodata model.Karyawan, gaji model.Uang) (InsertedID interface{})

func InsertJamker

func InsertJamker(db *mongo.Database, col string, jam_masuk string, jam_keluar string, hari string, shift string, piket_tim string) (InsertedID interface{})

func InsertKaryawan

func InsertKaryawan(db *mongo.Database, col string, nama string, phone_number string, jabatan string, hari_gaji string) (InsertedID interface{})

func InsertOneDoc

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

func InsertPimpinan

func InsertPimpinan(db *mongo.Database, col string, nama string, phone_number string, jabatan string, gaji model.Uang, bonus model.Jamker, biodata model.Karyawan, absensi model.Presensi) (InsertedID interface{})

func InsertPresensi

func InsertPresensi(db *mongo.Database, col string, location string, phone_number string, kehadiran string, biodata model.Karyawan, waktug model.Waktu) (InsertedID interface{})

func InsertUang

func InsertUang(db *mongo.Database, col string, tanggal string, gaji_pokok string, bonus model.Jamker, tunjangan_pph string, potongan string, biodata model.Karyawan, absensi model.Presensi) (InsertedID interface{})

func InsertWaktu

func InsertWaktu(db *mongo.Database, col string, hari string, jam string, tanggal string) (InsertedID interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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