step 7 : clock in selfie or not

This commit is contained in:
sindhu
2024-01-23 11:40:59 +07:00
parent e9e4d5bf05
commit d3fe3234eb
8 changed files with 239 additions and 41 deletions

View File

@@ -6,15 +6,16 @@ package resolver
import (
"context"
"fmt"
"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, tTransactionMAbsensiTypeID string, tTransactionMStaffID string, tTransactionMCompanyID string, tTransactionCurrentLatitude string, tTransactionCurrentLongitude string, tTransactionDistance string, tTransactionSelfiePhoto *string, tTransactionNote *string) (*model.TransAbsensiResponse, error) {
panic(fmt.Errorf("not implemented: MutationClockInAttendance - mutationClockInAttendance"))
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)
}
// QueryCheckDistance is the resolver for the queryCheckDistance field.