step 5 : add comp longi & lati, check distance gql, trans clock in gql

This commit is contained in:
sindhu
2024-01-22 15:11:44 +07:00
parent c62764165d
commit ba1f43ae70
12 changed files with 548 additions and 697 deletions

View File

@@ -5,11 +5,6 @@ package model
type Mutation struct {
}
type NewTodo struct {
Text string `json:"text"`
UserID string `json:"userId"`
}
type Query struct {
}
@@ -21,6 +16,8 @@ type Staff struct {
PhoneNumber *string `json:"phone_number,omitempty"`
CompanyID string `json:"company_id"`
CompanyName *string `json:"company_name,omitempty"`
CompanyLatitude *string `json:"company_latitude,omitempty"`
CompanyLongitude *string `json:"company_longitude,omitempty"`
IsActive *string `json:"is_active,omitempty"`
IsLogin *string `json:"is_login,omitempty"`
Token *string `json:"token,omitempty"`
@@ -31,19 +28,12 @@ type Staff struct {
LastUpdatedAt *string `json:"last_updated_at,omitempty"`
}
type Todo struct {
ID string `json:"id"`
Text string `json:"text"`
Done bool `json:"done"`
User *User `json:"user"`
}
type TokenResponse struct {
Token *string `json:"token,omitempty"`
Message *string `json:"message,omitempty"`
}
type User struct {
ID string `json:"id"`
Name string `json:"name"`
type TransAbsensiResponse struct {
Status *string `json:"status,omitempty"`
Message *string `json:"message,omitempty"`
}