Documentation ¶
Index ¶
- Constants
- func ButtonMessage(Info *types.MessageInfo, Message *waProto.Message, whatsapp *whatsmeow.Client)
- func ButtonMessageJamKerja(karyawan Karyawan, aktifjamkerja time.Duration, presensihariini Presensi, ...)
- func ButtonMessageMasukKerja(karyawan Karyawan, id interface{}, lokasi string, Info *types.MessageInfo, ...)
- func ButtonMessagePulangKerja(karyawan Karyawan, aktifjamkerja time.Duration, id interface{}, lokasi string, ...)
- func GenerateReportCurrentMonth(MongoConn *mongo.Database, im model.IteungMessage, ApiWa string, ...) atmessage.Response
- func GetFirstLastDateCurrentMonth() (firstOfMonth, lastOfMonth time.Time)
- func GetLiveLoc(Pesan model.IteungMessage) (lat, long float64)
- func GetLokasi(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)
- func GetNamaFromPhoneNumber(mongoconn *mongo.Database, phone_number string) (nama string)
- func HadirHandler(Pesan model.IteungMessage, lokasi string, mongoconn *mongo.Database) (reply string)
- func InsertPresensi(Info *types.MessageInfo, Message *waProto.Message, Checkin string, ...) (InsertedID interface{})
- func ListMessageJamKerja(karyawan Karyawan, aktifjamkerja time.Duration, presensihariini Presensi, ...)
- func ListMessageMasukKerja(karyawan Karyawan, id interface{}, lokasi string, Info *types.MessageInfo, ...)
- func ListMessagePulangKerja(karyawan Karyawan, aktifjamkerja time.Duration, id interface{}, lokasi string, ...)
- func LiveLocationMessage(Info *types.MessageInfo, Message *waProto.Message, whatsapp *whatsmeow.Client, ...)
- func Member(Info *types.MessageInfo, Message *waProto.Message, mongoconn *mongo.Database) (status bool)
- func MessageJamKerja(karyawan Karyawan, aktifjamkerja time.Duration, presensihariini Presensi, ...)
- func MessageMasukKerja(karyawan Karyawan, id interface{}, lokasi string, Info *types.MessageInfo, ...)
- func MessagePulangKerja(karyawan Karyawan, aktifjamkerja time.Duration, id interface{}, lokasi string, ...)
- func MessageTidakMasukKerja(nama string, long, lat float64, Info *types.MessageInfo, ...)
- func ReplyMessageJamKerja(karyawan Karyawan, aktifjamkerja time.Duration, presensihariini Presensi) string
- func ReplyMessageMasukKerja(karyawan Karyawan, id interface{}, lokasi string) string
- func ReplyMessagePulangKerja(karyawan Karyawan, aktifjamkerja time.Duration, id interface{}, lokasi string) string
- func ReplyMessageTidakMasukKerja(nama string, long, lat float64) string
- func ReportHandlerBulanIni(mongoconn *mongo.Database, im model.IteungMessage, ApiWa string, ...) string
- func TidakhadirHandler(Pesan model.IteungMessage, mongoconn *mongo.Database) string
- type Geometry
- type JamKerja
- type Karyawan
- type Lokasi
- type Presensi
- type RekapPresensi
Constants ¶
View Source
const Keyword string = "adorable"
Variables ¶
This section is empty.
Functions ¶
func ButtonMessage ¶ added in v0.0.2
func ButtonMessageJamKerja ¶ added in v0.0.13
func ButtonMessageMasukKerja ¶ added in v0.0.13
func ButtonMessagePulangKerja ¶ added in v0.0.13
func GetLiveLoc ¶ added in v0.0.35
func GetLiveLoc(Pesan model.IteungMessage) (lat, long float64)
func GetNamaFromPhoneNumber ¶
func HadirHandler ¶ added in v0.0.35
func InsertPresensi ¶ added in v0.0.2
func ListMessageJamKerja ¶ added in v0.0.4
func ListMessageMasukKerja ¶ added in v0.0.4
func ListMessagePulangKerja ¶ added in v0.0.4
func LiveLocationMessage ¶ added in v0.0.2
func MessageJamKerja ¶ added in v0.0.4
func MessageMasukKerja ¶ added in v0.0.4
func MessagePulangKerja ¶ added in v0.0.4
func MessageTidakMasukKerja ¶ added in v0.0.16
func ReplyMessageJamKerja ¶ added in v0.0.35
func ReplyMessageMasukKerja ¶ added in v0.0.35
func ReplyMessagePulangKerja ¶ added in v0.0.35
func ReplyMessageTidakMasukKerja ¶ added in v0.0.35
func ReportHandlerBulanIni ¶ added in v0.0.37
func TidakhadirHandler ¶ added in v0.0.35
func TidakhadirHandler(Pesan model.IteungMessage, mongoconn *mongo.Database) string
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"` Jam_masuk string `bson:"jam_masuk,omitempty"` Jam_keluar string `bson:"jam_keluar,omitempty"` Gmt int `bson:"gmt,omitempty"` Hari []string `bson:"hari,omitempty"` Shift int `bson:"shift,omitempty"` Piket_tim string `bson:"piket_tim,omitempty"` }
type Karyawan ¶
type Karyawan struct { ID primitive.ObjectID `bson:"_id,omitempty"` Nama string `bson:"nama,omitempty"` Phone_number string `bson:"phone_number,omitempty"` Jabatan string `bson:"jabatan,omitempty"` Jam_kerja []JamKerja `bson:"jam_kerja,omitempty"` Hari_kerja []string `bson:"hari_kerja,omitempty"` }
type Presensi ¶
type Presensi struct { ID primitive.ObjectID `bson:"_id,omitempty"` Longitude float64 `bson:"longitude,omitempty"` Latitude float64 `bson:"latitude,omitempty"` Location string `bson:"location,omitempty"` Phone_number string `bson:"phone_number,omitempty"` Datetime primitive.DateTime `bson:"datetime,omitempty"` Checkin string `bson:"checkin,omitempty"` Biodata Karyawan `bson:"biodata,omitempty"` }
func FillStructPresensi ¶ added in v0.0.35
func GetPresensiCurrentMonth ¶
type RekapPresensi ¶
type RekapPresensi struct { ID primitive.ObjectID `bson:"_id,omitempty"` In Presensi `bson:"in,omitempty"` Out Presensi `bson:"out,omitempty"` Lembur Presensi `bson:"lembur,omitempty"` Keterangan string `bson:"keterangan,omitempty"` TotalJamKerja primitive.DateTime `bson:"totaljamkerja,omitempty"` Late primitive.DateTime `bson:"late,omitempty"` }
Click to show internal directories.
Click to hide internal directories.