-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
081d578
commit 4a2e680
Showing
3 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,22 @@ package hermes_forms | |
|
||
type SendMailFormRequest struct { | ||
// required: true | ||
// type: string | ||
Code string `json:"code" binding:"required"` | ||
// required: true | ||
Recipients []string `json:"recipients" binding:"required"` | ||
PlaceHolder map[string]string `json:"placeholder" binding:"required"` | ||
Subject string `json:"subject"` | ||
// type: array | ||
// items: | ||
// type: string | ||
// example: ["[email protected]", "[email protected]"] | ||
Recipients []string `json:"recipients" binding:"required"` | ||
// required: false | ||
// type: object | ||
Placeholder map[string]string `json:"placeholder" binding:"required"` | ||
// required: false | ||
// type: string | ||
// extensions: | ||
// x-note: All key must be capital the first character | ||
Subject string `json:"subject"` | ||
} | ||
|
||
// swagger:parameters SendMail | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,13 +73,13 @@ | |
"items": { | ||
"$ref": "#/definitions/FeedbackModel" | ||
} | ||
}, | ||
"limit": { | ||
"type": "integer" | ||
}, | ||
"offset": { | ||
"type": "integer" | ||
} | ||
}, | ||
"limit": { | ||
"type": "integer" | ||
}, | ||
"offset": { | ||
"type": "integer" | ||
} | ||
} | ||
} | ||
|
@@ -462,18 +462,23 @@ | |
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"x-go-name": "PlaceHolder" | ||
"x-go-name": "Placeholder" | ||
}, | ||
"recipients": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"x-go-name": "Recipients" | ||
"x-go-name": "Recipients", | ||
"example": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
}, | ||
"subject": { | ||
"type": "string", | ||
"x-go-name": "Subject" | ||
"x-go-name": "Subject", | ||
"x-note": "All key must be capital the first character" | ||
} | ||
}, | ||
"x-go-package": "TSS-microservices/core/http/requests/hermes-forms" | ||
|