jasmine

package module
v0.1.0 Latest Latest
Warning

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

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

README

dhsbackend

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func InsertMataKuliah

func InsertMataKuliah(nama_matkul string, kode_matkul string, nama_dosen string, sks string, gambar string) (InsertedID interface{})

func InsertNilai

func InsertNilai(nama_matkul string, kode_matkul string, sks string, grade string) (InsertedID interface{})

func InsertOneDoc

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

func InsertRencanastudi

func InsertRencanastudi(nama_matkul string, kode_matkul string, status string, sks string, kelas string) (InsertedID interface{})

func InsertTranskrp

func InsertTranskrp(nama_matkul string, kode_matkul string, sks string, grade string) (InsertedID interface{})

func InsertUserdhs

func InsertUserdhs(nama string, npm string, program string, program_studi string, tahun_akademik string, kelas string, dosen_wali string) (InsertedID interface{})

func MongoConnect

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

Types

type MataKuliah

type MataKuliah struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama_matkul string             `bson:"nama_matkul,omitempty" json:"nama_matkul,omitempty"`
	Kode_matkul string             `bson:"kode_matkul,omitempty" json:"kode_matkul,omitempty"`
	Nama_dosen  string             `bson:"nama_dosen,omitempty" json:"nama_dosen,omitempty"`
	Sks         string             `bson:"sks,omitempty" json:"sks,omitempty"`
	Gambar      string             `bson:"gambar,omitempty" json:"gambar,omitempty"`
}

type Nilai

type Nilai struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama_matkul string             `bson:"nama_matkul,omitempty" json:"nama_matkul,omitempty"`
	Kode_matkul string             `bson:"kode_matkul,omitempty" json:"kode_matkul,omitempty"`
	Sks         string             `bson:"sks,omitempty" json:"sks,omitempty"`
	Grade       string             `bson:"grade,omitempty" json:"grade,omitempty"`
}

type RencanaStudi

type RencanaStudi struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama_matkul string             `bson:"nama_matkul,omitempty" json:"nama_matkul,omitempty"`
	Kode_matkul string             `bson:"kode_matkul,omitempty" json:"kode_matkul,omitempty"`
	Status      string             `bson:"status,omitempty" json:"status,omitempty"`
	Sks         string             `bson:"sks,omitempty" json:"sks,omitempty"`
	Kelas       string             `bson:"kelas,omitempty" json:"kelas,omitempty"`
}

type Transkrip

type Transkrip struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama_matkul string             `bson:"nama_matkul,omitempty" json:"nama_matkul,omitempty"`
	Kode_matkul string             `bson:"kode_matkul,omitempty" json:"kode_matkul,omitempty"`
	Sks         string             `bson:"sks,omitempty" json:"sks,omitempty"`
	Grade       string             `bson:"grade,omitempty" json:"grade,omitempty"`
}

type Userdhs

type Userdhs struct {
	ID             primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama           string             `bson:"nama,omitempty" json:"nama,omitempty"`
	Npm            string             `bson:"npm,omitempty" json:"npm,omitempty"`
	Program        string             `bson:"program,omitempty" json:"program,omitempty"`
	Program_Studi  string             `bson:"program_studi,omitempty" json:"program_studi,omitempty"`
	Tahun_Akademik string             `bson:"tahun_akademik,omitempty" json:"tahun_akademik,omitempty"`
	Kelas          string             `bson:"kelas,omitempty" json:"kelas,omitempty"`
	Dosen_Wali     string             `bson:"dosen_wali,omitempty" json:"dosen_wali,omitempty"`
}

Jump to

Keyboard shortcuts

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