step 6 : check distance graphql
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"com.sismedika.com.absensi/graph/model"
|
||||
transabsensiinternal "com.sismedika.com.absensi/internal/transabsensi"
|
||||
)
|
||||
|
||||
// MutationClockInAttendance is the resolver for the mutationClockInAttendance field.
|
||||
@@ -17,19 +18,8 @@ func (r *mutationResolver) MutationClockInAttendance(ctx context.Context, tTrans
|
||||
}
|
||||
|
||||
// QueryCheckDistance is the resolver for the queryCheckDistance field.
|
||||
func (r *queryResolver) QueryCheckDistance(ctx context.Context, mStaffID string, mCompanyID string, mCompanyLatitude string, mCompanyLongitude string, currentLatitude string, currentLongitude string) (*model.TransAbsensiResponse, error) {
|
||||
panic(fmt.Errorf("not implemented: QueryCheckDistance - queryCheckDistance"))
|
||||
}
|
||||
|
||||
// !!! WARNING !!!
|
||||
// The code below was going to be deleted when updating resolvers. It has been copied here so you have
|
||||
// one last chance to move it out of harms way if you want. There are two reasons this happens:
|
||||
// - When renaming or deleting a resolver the old code will be put in here. You can safely delete
|
||||
// it when you're done.
|
||||
// - You have helper methods in this file. Move them out to keep these resolver files clean.
|
||||
func (r *mutationResolver) MClockInAttendance(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: MClockInAttendance - mClockInAttendance"))
|
||||
}
|
||||
func (r *queryResolver) QCheckDistance(ctx context.Context, mStaffID string, mCompanyID string, mCompanyLatitude string, mCompanyLongitude string, currentLatitude string, currentLongitude string) (*model.TransAbsensiResponse, error) {
|
||||
panic(fmt.Errorf("not implemented: QCheckDistance - qCheckDistance"))
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user