48 lines
3.6 KiB
Go
48 lines
3.6 KiB
Go
package resolver
|
|
|
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
|
// will be copied through when generating and any unknown code will be moved to the end.
|
|
// Code generated by github.com/99designs/gqlgen version v0.17.43-dev
|
|
|
|
import (
|
|
"context"
|
|
|
|
"com.sismedika.com.absensi/graph/model"
|
|
transabsensiinternal "com.sismedika.com.absensi/internal/transabsensi"
|
|
)
|
|
|
|
// MutationClockInAttendance is the resolver for the mutationClockInAttendance field.
|
|
func (r *mutationResolver) MutationClockInAttendance(ctx context.Context, tTransactionMStaffID string, tTransactionMCompanyID string, tTransactionCurrentLatitude string, tTransactionCurrentLongitude string, tTransactionCurrentDistance string, tTransactionSelfiePhoto *string, token string, isSelfie string) (*model.TransAbsensiResponse, error) {
|
|
// panic(fmt.Errorf("not implemented: MutationClockInAttendance - mutationClockInAttendance"))
|
|
var transabsensiinternal transabsensiinternal.TransAbsensiResponse
|
|
return transabsensiinternal.ClockInAbsensi(tTransactionMStaffID, tTransactionMCompanyID, tTransactionCurrentLatitude, tTransactionCurrentLongitude, tTransactionCurrentDistance, *tTransactionSelfiePhoto, token, isSelfie)
|
|
}
|
|
|
|
// MutationClockOutAttendance is the resolver for the mutationClockOutAttendance field.
|
|
func (r *mutationResolver) MutationClockOutAttendance(ctx context.Context, tTransactionMStaffID string, tTransactionMCompanyID string, tTransactionCurrentLatitude string, tTransactionCurrentLongitude string, tTransactionCurrentDistance string, tTransactionSelfiePhoto *string, token string, isSelfie string) (*model.TransAbsensiResponse, error) {
|
|
// panic(fmt.Errorf("not implemented: MutationClockOutAttendance - mutationClockOutAttendance"))
|
|
var transabsensiinternal transabsensiinternal.TransAbsensiResponse
|
|
return transabsensiinternal.ClockOutAbsensi(tTransactionMStaffID, tTransactionMCompanyID, tTransactionCurrentLatitude, tTransactionCurrentLongitude, tTransactionCurrentDistance, *tTransactionSelfiePhoto, token, isSelfie)
|
|
}
|
|
|
|
// QueryCheckDistance is the resolver for the queryCheckDistance field.
|
|
func (r *queryResolver) QueryCheckDistance(ctx context.Context, mStaffID string, mCompanyID string, currentLatitude string, currentLongitude string) (*model.TransAbsensiCheckDistanceResponse, error) {
|
|
// panic(fmt.Errorf("not implemented: QueryCheckDistance - queryCheckDistance"))
|
|
var transabsensiinternal transabsensiinternal.TransAbsensiCheckDistanceResponse
|
|
return transabsensiinternal.CheckDistance(mStaffID, mCompanyID, currentLatitude, currentLongitude)
|
|
}
|
|
|
|
// QueryCheckTimeAttendance is the resolver for the queryCheckTimeAttendance field.
|
|
func (r *queryResolver) QueryCheckTimeAttendance(ctx context.Context, mStaffID string, mCompanyID string, token string) (*model.TransAbsensiCheckTimeAttendanceResponse, error) {
|
|
// panic(fmt.Errorf("not implemented: QueryCheckTimeAttendance - queryCheckTimeAttendance"))
|
|
var transabsensiinternal transabsensiinternal.TransAbsensiCheckTimeAttendanceResponse
|
|
return transabsensiinternal.CheckTimeAttendance(mStaffID, mCompanyID, token)
|
|
}
|
|
|
|
// QueryRekapKehadiranHomeScreen is the resolver for the queryRekapKehadiranHomeScreen field.
|
|
func (r *queryResolver) QueryRekapKehadiranHomeScreen(ctx context.Context, mStaffID string, mCompanyID string, token string) (*model.RekapKehadiranHomeScreen, error) {
|
|
// panic(fmt.Errorf("not implemented: QueryRekapKehadiranHomeScreen - queryRekapKehadiranHomeScreen"))
|
|
var transabsensiinternal transabsensiinternal.RekapKehadiranHomeScreen
|
|
return transabsensiinternal.RekapKehadiranHomeScreen(mStaffID, mCompanyID, token)
|
|
}
|