ilk
This commit is contained in:
16
svc/models/modelcombo_error.go
Normal file
16
svc/models/modelcombo_error.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// models/errors.go
|
||||
package models
|
||||
|
||||
type ValidationError struct {
|
||||
Code string `json:"code"`
|
||||
Message string `json:"message"`
|
||||
ClientKey string `json:"clientKey,omitempty"`
|
||||
ItemCode string `json:"itemCode,omitempty"`
|
||||
ColorCode string `json:"colorCode,omitempty"`
|
||||
Dim1 string `json:"dim1,omitempty"`
|
||||
Dim2 string `json:"dim2,omitempty"`
|
||||
}
|
||||
|
||||
func (e *ValidationError) Error() string {
|
||||
return e.Message
|
||||
}
|
||||
Reference in New Issue
Block a user