27 lines
1.7 KiB
Go
27 lines
1.7 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)
|
|
}
|
|
|
|
// 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)
|
|
}
|