Documentation ¶
Index ¶
- func DeletePresensiByID(c *fiber.Ctx) error
- func GetAll(c *fiber.Ctx) error
- func GetAllJamRapat(c *fiber.Ctx) error
- func GetAllJamRapatFromDurasi(c *fiber.Ctx) error
- func GetAllLokasi(c *fiber.Ctx) error
- func GetAllPresensi(c *fiber.Ctx) error
- func GetAllRuangan(c *fiber.Ctx) error
- func GetAllRuanganFromNoRuangan(c *fiber.Ctx) error
- func GetAllTamu(c *fiber.Ctx) error
- func GetAllTamuFromJabatan(c *fiber.Ctx) error
- func GetAllUndanganRapatFromNamaTamu(c *fiber.Ctx) error
- func GetAllUniversitas(c *fiber.Ctx) error
- func GetAllUniversitasFromJurusan(c *fiber.Ctx) error
- func GetPresensi(c *fiber.Ctx) error
- func GetPresensiID(c *fiber.Ctx) error
- func Home(c *fiber.Ctx) error
- func Homepage(c *fiber.Ctx) error
- func InsertData(c *fiber.Ctx) error
- func InsertDataJamRapat(c *fiber.Ctx) error
- func InsertDataLokasi(c *fiber.Ctx) error
- func InsertDataRuangan(c *fiber.Ctx) error
- func InsertDataTamu(c *fiber.Ctx) error
- func InsertDataUndanganRapat(c *fiber.Ctx) error
- func InsertDataUniversitas(c *fiber.Ctx) error
- func InsertUndanganRapat(c *fiber.Ctx) error
- func PostWhatsAuthRequest(c *fiber.Ctx) error
- func UpdateData(c *fiber.Ctx) error
- func WsWhatsAuthQR(c *websocket.Conn)
- type Geometry
- type JamKerja
- type Karyawan
- type Lokasi
- type Presensi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePresensiByID ¶
func DeletePresensiByID(c *fiber.Ctx) error
DeletePresensiByID godoc @Summary Delete data presensi. @Description Hapus data presensi. @Tags Presensi @Accept json @Produce json @Param id path string true "Masukan ID" @Success 200 @Failure 400 @Failure 500 @Router /delete/{id} [delete]
func GetAllJamRapat ¶
func GetAllJamRapat(c *fiber.Ctx) error
func GetAllJamRapatFromDurasi ¶
func GetAllJamRapatFromDurasi(c *fiber.Ctx) error
func GetAllLokasi ¶
func GetAllLokasi(c *fiber.Ctx) error
func GetAllPresensi ¶
func GetAllPresensi(c *fiber.Ctx) error
GetAllPresensi godoc @Summary Get All Data Presensi. @Description Mengambil semua data presensi. @Tags Presensi @Accept json @Produce json @Success 200 {object} Presensi @Router /presensi [get]
func GetAllRuangan ¶
func GetAllRuangan(c *fiber.Ctx) error
func GetAllRuanganFromNoRuangan ¶
func GetAllRuanganFromNoRuangan(c *fiber.Ctx) error
func GetAllTamu ¶
func GetAllTamu(c *fiber.Ctx) error
func GetAllTamuFromJabatan ¶
func GetAllTamuFromJabatan(c *fiber.Ctx) error
func GetAllUndanganRapatFromNamaTamu ¶
func GetAllUndanganRapatFromNamaTamu(c *fiber.Ctx) error
func GetAllUniversitas ¶
func GetAllUniversitas(c *fiber.Ctx) error
func GetAllUniversitasFromJurusan ¶
func GetAllUniversitasFromJurusan(c *fiber.Ctx) error
func GetPresensi ¶
func GetPresensi(c *fiber.Ctx) error
func GetPresensiID ¶
func GetPresensiID(c *fiber.Ctx) error
GetPresensiID godoc @Summary Get By ID Data Presensi. @Description Ambil per ID data presensi. @Tags Presensi @Accept json @Produce json @Param id path string true "Masukan ID" @Success 200 {object} Presensi @Failure 400 @Failure 404 @Failure 500 @Router /presensi/{id} [get]
func InsertData ¶
func InsertData(c *fiber.Ctx) error
InsertData godoc @Summary Insert data presensi. @Description Input data presensi. @Tags Presensi @Accept json @Produce json @Param request body Presensi true "Payload Body [RAW]" @Success 200 {object} Presensi @Failure 400 @Failure 500 @Router /ins [post]
func InsertDataJamRapat ¶
func InsertDataJamRapat(c *fiber.Ctx) error
func InsertDataLokasi ¶
func InsertDataLokasi(c *fiber.Ctx) error
func InsertDataRuangan ¶
func InsertDataRuangan(c *fiber.Ctx) error
func InsertDataTamu ¶
func InsertDataTamu(c *fiber.Ctx) error
func InsertDataUndanganRapat ¶
func InsertDataUndanganRapat(c *fiber.Ctx) error
func InsertDataUniversitas ¶
func InsertDataUniversitas(c *fiber.Ctx) error
func InsertUndanganRapat ¶
func InsertUndanganRapat(c *fiber.Ctx) error
func PostWhatsAuthRequest ¶
func PostWhatsAuthRequest(c *fiber.Ctx) error
func UpdateData ¶
func UpdateData(c *fiber.Ctx) error
UpdateData godoc @Summary Update data presensi. @Description Ubah data presensi. @Tags Presensi @Accept json @Produce json @Param id path string true "Masukan ID" @Param request body Presensi true "Payload Body [RAW]" @Success 200 {object} Presensi @Failure 400 @Failure 500 @Router /upd/{id} [put]
func WsWhatsAuthQR ¶
func WsWhatsAuthQR(c *websocket.Conn)
Types ¶
type Geometry ¶
type Geometry struct { Type string `json:"type" bson:"type"` Coordinates interface{} `json:"coordinates" bson:"coordinates"` }
type JamKerja ¶
type JamKerja struct { Durasi int `bson:"durasi,omitempty" json:"durasi,omitempty" example:"8"` Jam_masuk string `bson:"jam_masuk,omitempty" json:"jam_masuk,omitempty" example:"08:00"` Jam_keluar string `bson:"jam_keluar,omitempty" json:"jam_keluar,omitempty" example:"16:00"` Gmt int `bson:"gmt,omitempty" json:"gmt,omitempty" example:"7"` Hari []string `bson:"hari,omitempty" json:"hari,omitempty" example:"Senin,Selasa,Rabu,Kamis,Jumat,Sabtu,Minggu"` Shift int `bson:"shift,omitempty" json:"shift,omitempty" example:"2"` Piket_tim string `bson:"piket_tim,omitempty" json:"piket_tim,omitempty" example:"Piket Z"` }
type Karyawan ¶
type Karyawan struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty" example:"123456789"` Nama string `bson:"nama,omitempty" json:"nama,omitempty" example:"Tes Swagger"` PhoneNumber string `bson:"phone_number,omitempty" json:"phone_number,omitempty" example:"08123456789"` Jabatan string `bson:"jabatan,omitempty" json:"jabatan,omitempty" example:"Anonymous"` Jam_kerja []JamKerja `bson:"jam_kerja,omitempty" json:"jam_kerja,omitempty"` Hari_kerja []string `bson:"hari_kerja,omitempty" json:"hari_kerja,omitempty" example:"Senin,Selasa,Rabu,Kamis,Jumat,Sabtu,Minggu"` }
type Presensi ¶
type Presensi struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty" example:"123456789"` Longitude float64 `bson:"longitude,omitempty" json:"longitude,omitempty" example:"123.11"` Latitude float64 `bson:"latitude,omitempty" json:"latitude,omitempty" example:"123.11"` Location string `bson:"location,omitempty" json:"location,omitempty" example:"Bandung"` Phone_number string `bson:"phone_number,omitempty" json:"phone_number,omitempty" example:"08123456789"` //Datetime primitive.DateTime `bson:"datetime,omitempty" json:"datetime,omitempty"` Checkin string `bson:"checkin,omitempty" json:"checkin,omitempty" example:"MASUK"` Biodata Karyawan `bson:"biodata,omitempty" json:"biodata,omitempty"` }