feat: implemented service/transport/main layers
This commit is contained in:
parent
5158c5d7c9
commit
bcb9ace54c
29 changed files with 804 additions and 393 deletions
|
|
@ -12,7 +12,7 @@ import (
|
|||
|
||||
// PerformPredictionParams is parameters of performPrediction operation.
|
||||
type PerformPredictionParams struct {
|
||||
Parameters OptParameters
|
||||
Parameters OptPredictionParameters
|
||||
}
|
||||
|
||||
func unpackPerformPredictionParams(packed middleware.Parameters) (params PerformPredictionParams) {
|
||||
|
|
@ -22,7 +22,7 @@ func unpackPerformPredictionParams(packed middleware.Parameters) (params Perform
|
|||
In: "query",
|
||||
}
|
||||
if v, ok := packed[key]; ok {
|
||||
params.Parameters = v.(OptParameters)
|
||||
params.Parameters = v.(OptPredictionParameters)
|
||||
}
|
||||
}
|
||||
return params
|
||||
|
|
@ -41,7 +41,7 @@ func decodePerformPredictionParams(args [0]string, argsEscaped bool, r *http.Req
|
|||
|
||||
if err := q.HasParam(cfg); err == nil {
|
||||
if err := q.DecodeParam(cfg, func(d uri.Decoder) error {
|
||||
var paramsDotParametersVal Parameters
|
||||
var paramsDotParametersVal PredictionParameters
|
||||
if err := func() error {
|
||||
return paramsDotParametersVal.DecodeURI(d)
|
||||
}(); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue