Administration, organizations access rights and véhicles booking

This commit is contained in:
2022-08-12 14:53:54 +02:00
parent 7225d027c9
commit 0bb915059d
34 changed files with 1839 additions and 245 deletions

23
services/fleets.go Normal file
View File

@@ -0,0 +1,23 @@
package services
import (
fleets "git.coopgo.io/coopgo-platform/fleets/grpcapi"
"google.golang.org/grpc"
)
type FleetsService struct {
fleets.FleetsClient
}
func NewFleetsService(dial string) (*FleetsService, error) {
conn, err := grpc.Dial(dial, grpc.WithInsecure())
client := fleets.NewFleetsClient(conn)
if err != nil {
return nil, err
}
return &FleetsService{
FleetsClient: client,
}, nil
}