1. inisialisasi backend golang

This commit is contained in:
sindhu
2024-01-10 16:23:04 +07:00
parent 0464b1629e
commit a2defaaaa8
18 changed files with 6276 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package resolver
// This file will not be regenerated automatically.
//
// It serves as dependency injection for your app, add any dependencies you require here.
type Resolver struct{}

View File

@@ -0,0 +1,32 @@
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.42
import (
"context"
"fmt"
"com.sismedika.com.absensi/graph/generated"
"com.sismedika.com.absensi/graph/model"
)
// CreateTodo is the resolver for the createTodo field.
func (r *mutationResolver) CreateTodo(ctx context.Context, input model.NewTodo) (*model.Todo, error) {
panic(fmt.Errorf("not implemented: CreateTodo - createTodo"))
}
// Todos is the resolver for the todos field.
func (r *queryResolver) Todos(ctx context.Context) ([]*model.Todo, error) {
panic(fmt.Errorf("not implemented: Todos - todos"))
}
// Mutation returns generated.MutationResolver implementation.
func (r *Resolver) Mutation() generated.MutationResolver { return &mutationResolver{r} }
// Query returns generated.QueryResolver implementation.
func (r *Resolver) Query() generated.QueryResolver { return &queryResolver{r} }
type mutationResolver struct{ *Resolver }
type queryResolver struct{ *Resolver }

View File

@@ -0,0 +1,37 @@
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.42
import (
"context"
"fmt"
"com.sismedika.com.absensi/graph/model"
)
// GenerateToken is the resolver for the generateToken field.
func (r *mutationResolver) GenerateToken(ctx context.Context, email string, idGoogleSignIn string) (*model.TokenResponse, error) {
panic(fmt.Errorf("not implemented: GenerateToken - generateToken"))
}
// LoginAttendance is the resolver for the loginAttendance field.
func (r *mutationResolver) LoginAttendance(ctx context.Context, email string, idGoogleSignIn string) (*model.Staff, error) {
panic(fmt.Errorf("not implemented: LoginAttendance - loginAttendance"))
}
// SearchStaffByEmail is the resolver for the searchStaffByEmail field.
func (r *queryResolver) SearchStaffByEmail(ctx context.Context, email string) (*model.Staff, error) {
panic(fmt.Errorf("not implemented: SearchStaffByEmail - searchStaffByEmail"))
}
// StaffGetByStaffID is the resolver for the staffGetByStaffId field.
func (r *queryResolver) StaffGetByStaffID(ctx context.Context, staffID string) (*model.Staff, error) {
panic(fmt.Errorf("not implemented: StaffGetByStaffID - staffGetByStaffId"))
}
// StaffListBySearch is the resolver for the staffListBySearch field.
func (r *queryResolver) StaffListBySearch(ctx context.Context, search *string, page *int, maxPerPage *int) ([]*model.Staff, error) {
panic(fmt.Errorf("not implemented: StaffListBySearch - staffListBySearch"))
}