notes/cisco_ft_securex_registration.org
This commit is contained in:
parent
868b1aa708
commit
f6fa8d625a
1 changed files with 6 additions and 0 deletions
|
@ -804,8 +804,11 @@ In order to achieve this; you should:
|
|||
email to the users. This refacto should potentially be used for the
|
||||
Invite mechanism, but as it appear to work fine today we might decide
|
||||
not to touch it.
|
||||
|
||||
*** Dev details
|
||||
|
||||
Here are some dev details that could probably be copy/pasted as-is:
|
||||
|
||||
#+begin_src clojure
|
||||
(s/defschema MailTemplate
|
||||
(st/optional-keys
|
||||
|
@ -815,11 +818,13 @@ In order to achieve this; you should:
|
|||
:mail-source s/Str}))
|
||||
|
||||
(defprotocol EMailTemplatingService
|
||||
;; CRUD operations
|
||||
(create-email-template [this email-template-id new-email-template])
|
||||
(get-email-template [this email-template-id])
|
||||
(delete-email-template [this email-template-id])
|
||||
(update-email-template [this email-template-id email-template])
|
||||
(patch-email-template [this email-template-id email-template-patch])
|
||||
;; History
|
||||
(search-email-template-history
|
||||
[this email-template-id filter-map text-match pagination-params]
|
||||
"given an email-template-id, return the list of matched template-id saved in history.")
|
||||
|
@ -830,6 +835,7 @@ In order to achieve this; you should:
|
|||
"revert-email-template on the previous one.
|
||||
Beware reverting/undoing is also saved in history.")
|
||||
|
||||
;; SendEmails
|
||||
(send-templated-email [this email-template-id template-params]
|
||||
"send an email using some template id and template-params
|
||||
are object that will be used by the mustache templating system to fill the template."))
|
||||
|
|
Loading…
Reference in a new issue