Documentation
¶
Overview ¶
Expose les fonctionnalités du formulaire d'inscription aux séjours ACVE.
Index ¶
- Constants
- Variables
- type CampSimple
- type Controller
- func (ct Controller) CheckMail(c echo.Context) error
- func (ct Controller) EnregistreInscriptionComplete(c echo.Context) error
- func (ct Controller) EnregistreInscriptionSimple(c echo.Context) error
- func (ct Controller) FormulaireInscription(c echo.Context) error
- func (ct Controller) HandleLoadDataInscriptions(c echo.Context) error
- func (ct Controller) RejoueInscriptionComplete(c echo.Context) error
- func (ct Controller) ValideMail(c echo.Context) error
- type DataInscription
- type EnregistreInscriptionOut
- type InscriptionSimple
- type MetaInscription
- type Preinscription
Constants ¶
const ( UrlInscriptions = "/inscription" EndPointValidMail = "/valide-mail" )
Variables ¶
var PathValidMail = path.Join(UrlInscriptions, EndPointValidMail)
adresse de confirmation du mail
Functions ¶
This section is empty.
Types ¶
type CampSimple ¶
type CampSimple struct { Id int64 `json:"id"` IdGroupe int64 `json:"id_groupe"` Label rd.String `json:"label"` Prix rd.Euros `json:"prix"` DateDebut rd.Date `json:"date_debut"` DateFin rd.Date `json:"date_fin"` AgeMin rd.Int `json:"age_min"` AgeMax rd.Int `json:"age_max"` }
func (*CampSimple) From ¶
func (c *CampSimple) From(camp rd.Camp)
type Controller ¶
type Controller struct {
shared.Controller
}
func (Controller) CheckMail ¶
func (ct Controller) CheckMail(c echo.Context) error
CheckMail analyse l'adresse mail donnée et envoie un lien d'inscription rapide aux personnes concernées.
func (Controller) EnregistreInscriptionComplete ¶
func (ct Controller) EnregistreInscriptionComplete(c echo.Context) error
EnregistreInscriptionComplete vérifie l'inscription et valide le mail (soit directement, soit par lien de confirmation)
func (Controller) EnregistreInscriptionSimple ¶
func (ct Controller) EnregistreInscriptionSimple(c echo.Context) error
EnregistreInscriptionSimple enregistre une inscription sur un séjour simplifié.
func (Controller) FormulaireInscription ¶
func (ct Controller) FormulaireInscription(c echo.Context) error
FormulaireInscription affiche la page d'inscription, qui dépend du camp éventuellement présent dans l'url.
func (Controller) HandleLoadDataInscriptions ¶
func (ct Controller) HandleLoadDataInscriptions(c echo.Context) error
HandleLoadDataInscriptions décode la préinscription et renvoie les données des séjours.
func (Controller) RejoueInscriptionComplete ¶
func (ct Controller) RejoueInscriptionComplete(c echo.Context) error
RejoueInscriptionComplete enregristre l'inscription mais ne vérifie pas le mail Entre autre, aucun mail n'est envoyé.
func (Controller) ValideMail ¶
func (ct Controller) ValideMail(c echo.Context) error
ValideMail décrypte l'id de la facture et renvoie vers l'espace perso
type DataInscription ¶
type DataInscription struct { Camps []shared.Camp `json:"camps"` PreselectCamp string `json:"preselect_camp"` InitialInscription rd.Inscription `json:"initial_inscription"` }
type InscriptionSimple ¶
type MetaInscription ¶
type MetaInscription struct { IsComplet bool `json:"is_complet"` LabelCampSimple string `json:"label_camp_simple"` }
MetaInscription paramétrise le mode d'inscription (simple ou complet)
type Preinscription ¶
Preinscription code le choix d'un responsable et des participants associés.