|
@@ -406,6 +406,7 @@ type AuthEmail struct {
|
|
Email string `rest:"required" example:"mail@mail.ml"`
|
|
Email string `rest:"required" example:"mail@mail.ml"`
|
|
ThemeName string `rest:"required"`
|
|
ThemeName string `rest:"required"`
|
|
UUser *User
|
|
UUser *User
|
|
|
|
+ Fields []any
|
|
}
|
|
}
|
|
|
|
|
|
func (s *AuthEmail) Validate(req IRequestIn) IRequestOut {
|
|
func (s *AuthEmail) Validate(req IRequestIn) IRequestOut {
|
|
@@ -434,8 +435,8 @@ func TestSerializeEmail(t *testing.T) {
|
|
"email": "flint@77i.su",
|
|
"email": "flint@77i.su",
|
|
"themeName": "th-name",
|
|
"themeName": "th-name",
|
|
"UUser": json.Map{
|
|
"UUser": json.Map{
|
|
- "ID": 100,
|
|
+ "ID": 100,
|
|
- "Name": "User 100",
|
|
+
|
|
"Created": "10.11.1983 03:12",
|
|
"Created": "10.11.1983 03:12",
|
|
"ParentID": nil,
|
|
"ParentID": nil,
|
|
},
|
|
},
|