feat: implemented service/transport/main layers

This commit is contained in:
Anatoly Antonov 2025-06-21 22:06:32 +03:00
parent 5158c5d7c9
commit bcb9ace54c
29 changed files with 804 additions and 393 deletions

View file

@ -10,7 +10,7 @@ import (
"github.com/ogen-go/ogen/validate"
)
func (s *Parameters) Validate() error {
func (s *PredictionParameters) Validate() error {
if s == nil {
return validate.ErrNilPointer
}
@ -184,7 +184,7 @@ func (s *Parameters) Validate() error {
return nil
}
func (s ParametersFormat) Validate() error {
func (s PredictionParametersFormat) Validate() error {
switch s {
case "json":
return nil
@ -193,7 +193,7 @@ func (s ParametersFormat) Validate() error {
}
}
func (s ParametersProfile) Validate() error {
func (s PredictionParametersProfile) Validate() error {
switch s {
case "standard_profile":
return nil
@ -208,7 +208,7 @@ func (s ParametersProfile) Validate() error {
}
}
func (s *Result) Validate() error {
func (s *PredictionResult) Validate() error {
if s == nil {
return validate.ErrNilPointer
}
@ -248,7 +248,7 @@ func (s *Result) Validate() error {
return nil
}
func (s *ResultPredictionItem) Validate() error {
func (s *PredictionResultPredictionItem) Validate() error {
if s == nil {
return validate.ErrNilPointer
}
@ -282,7 +282,7 @@ func (s *ResultPredictionItem) Validate() error {
return nil
}
func (s ResultPredictionItemStage) Validate() error {
func (s PredictionResultPredictionItemStage) Validate() error {
switch s {
case "ascent":
return nil