♻️ Use dealer's BaseModel

This commit is contained in:
2024-09-11 23:58:02 +08:00
parent f962376f42
commit 14e3750bd9
20 changed files with 48 additions and 45 deletions

View File

@ -2,8 +2,9 @@ package grpc
import (
"context"
health "google.golang.org/grpc/health/grpc_health_v1"
"time"
health "google.golang.org/grpc/health/grpc_health_v1"
)
func (v *Server) Check(ctx context.Context, request *health.HealthCheckRequest) (*health.HealthCheckResponse, error) {

View File

@ -1,12 +1,13 @@
package grpc
import (
"net"
"git.solsynth.dev/hydrogen/dealer/pkg/proto"
"github.com/spf13/viper"
"google.golang.org/grpc"
health "google.golang.org/grpc/health/grpc_health_v1"
"google.golang.org/grpc/reflection"
"net"
)
type Server struct {