controller

package
v0.0.0-...-edb0b86 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 GetAllGajiFromNamaKaryawan

func GetAllGajiFromNamaKaryawan(c *fiber.Ctx) error

func GetAllGajiFromPresensi

func GetAllGajiFromPresensi(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 GetAllPresensiFromWaktu

func GetAllPresensiFromWaktu(c *fiber.Ctx) error

func GetAllUang

func GetAllUang(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 Homepage

func Homepage(c *fiber.Ctx) error

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 InsertJamker

func InsertJamker(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 Lokasi

type Lokasi struct {
	//ID       primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama     string   `bson:"nama,omitempty" json:"nama,omitempty"`
	Batas    Geometry `bson:"batas,omitempty" json:"batas,omitempty"`
	Kategori string   `bson:"kategori,omitempty" json:"kategori,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

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