controller

package
v0.0.0-...-ef6cb4d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticated

func Authenticated(c *fiber.Ctx) error

Authenticated godoc @Summary Autentikasi. @Description Autentikasi User. @Tags Tugbes Webservice @Accept json @Produce json @Param request body Token true "Payload Body [RAW]" @Success 200 {object} Token @Failure 400 @Failure 500 @Router /auth [post]

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 /presensi2/{id} [delete]

func GetAllKamtibmas

func GetAllKamtibmas(c *fiber.Ctx) error

func GetAllLowongan

func GetAllLowongan(c *fiber.Ctx) error

func GetAllPresensi

func GetAllPresensi(c *fiber.Ctx) error

Ulbimongoconn

func GetAllPresensi2

func GetAllPresensi2(c *fiber.Ctx) error

GetAllPresensi2 godoc @Summary Get All Data Presensi. @Description Mengambil semua data presensi. @Tags Presensi @Accept json @Produce json @Success 200 {object} Presensi @Router /presensi2 [get]

func GetAllUser

func GetAllUser(c *fiber.Ctx) error

func GetKelas

func GetKelas(c *fiber.Ctx) error

func GetLowonganFromID

func GetLowonganFromID(c *fiber.Ctx) error

func GetMahasiswa

func GetMahasiswa(c *fiber.Ctx) error

func GetMatkul

func GetMatkul(c *fiber.Ctx) error

func GetPresensi

func GetPresensi(c *fiber.Ctx) error

Ulbimongoconn2

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 /presensi2/{id} [get]

func GetSemuaDataRuangan

func GetSemuaDataRuangan(c *fiber.Ctx) error

func GetSemuaDosen

func GetSemuaDosen(c *fiber.Ctx) error

func GetSemuaKelas

func GetSemuaKelas(c *fiber.Ctx) error

func GetSemuaMahasiswa

func GetSemuaMahasiswa(c *fiber.Ctx) error

func GetSemuaMataKuliah

func GetSemuaMataKuliah(c *fiber.Ctx) error

func GetSemuaPresensi

func GetSemuaPresensi(c *fiber.Ctx) error

func GetSemuaProdi

func GetSemuaProdi(c *fiber.Ctx) error

func GetSemuaRuangKuliah

func GetSemuaRuangKuliah(c *fiber.Ctx) error

func Home

func Home(c *fiber.Ctx) error

func Homepage

func Homepage(c *fiber.Ctx) error

func InsertDataKelas

func InsertDataKelas(c *fiber.Ctx) error

func InsertDataMahasiswa

func InsertDataMahasiswa(c *fiber.Ctx) error

func InsertDataMatkul

func InsertDataMatkul(c *fiber.Ctx) error

func InsertDataPresensi

func InsertDataPresensi(c *fiber.Ctx) error

func InsertDataPresensi2

func InsertDataPresensi2(c *fiber.Ctx) error

InsertDataPresensi2 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 /presensi2 [post]

func InsertUser

func InsertUser(c *fiber.Ctx) error

tugbes webservice

func LogIn

func LogIn(c *fiber.Ctx) error

LogIn godoc @Summary Login. @Description Login User Admin. @Tags Tugbes Webservice @Accept json @Produce json @Param request body Admin true "Payload Body [RAW]" @Success 200 {object} Admin @Failure 400 @Failure 500 @Router /login [post]

func PostWhatsAuthRequest

func PostWhatsAuthRequest(c *fiber.Ctx) error

func SignUp

func SignUp(c *fiber.Ctx) error

func UpdateDataPresensi

func UpdateDataPresensi(c *fiber.Ctx) error

UpdateDataPresensi 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 /presensi2/{id} [put]

func WsWhatsAuthQR

func WsWhatsAuthQR(c *websocket.Conn)

Types

type Admin

type Admin struct {
	Email    string `bson:"email,omitempty" json:"email,omitempty"`
	Password string `bson:"password,omitempty" json:"password,omitempty"`
}

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

type Token

type Token struct {
	TokenString string `json:"tokenstring"`
}

type User

type User struct {
	ID              primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	FirstName       string             `bson:"firstname,omitempty" json:"firstname,omitempty"`
	LastName        string             `bson:"lastname,omitempty" json:"lastname,omitempty"`
	Email           string             `bson:"email,omitempty" json:"email,omitempty"`
	Password        string             `bson:"password,omitempty" json:"password,omitempty"`
	Confirmpassword string             `bson:"confirmpass,omitempty" json:"confirmpass,omitempty"`
	Salt            string             `bson:"salt,omitempty" json:"salt,omitempty"`
}

Jump to

Keyboard shortcuts

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