redcross

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ACTIVITY_MAP = map[string]int{"01-DAUPHIN": 1,
	"02-CASTOR": 2, "03-RUBIS": 3, "04-SAPHIR": 4,
	"05-BABETTE": 5, "REGULATION": 6}

Functions

This section is empty.

Types

type Action

type Action struct {
	ID      int    `json:"id"`
	Libelle string `json:"libelle"`
}

type Activity

type Activity struct {
	ID                      string       `json:"id"`
	Libelle                 string       `json:"libelle"`
	StructureOrganisatrice  Structure    `json:"structureOrganisatrice"`
	StructureMenantActivite Structure    `json:"structureMenantActivite"`
	Statut                  string       `json:"statut"`
	SeanceList              []Seance     `json:"seanceList"`
	TypeActivite            TypeActivite `json:"typeActivite"`
	Responsable             Utilisateur  `json:"responsable"`
}

type AdvancedSearch

type AdvancedSearch struct {
	StructureList   []int    `json:"structureList"`
	FormationInList []string `json:"formationInList"`
	SearchType      string   `json:"searchType"`
	WithMoyensCom   bool     `json:"withMoyensCom"`
}

type ByActivity

type ByActivity []Activity

func (ByActivity) Len

func (a ByActivity) Len() int

func (ByActivity) Less

func (a ByActivity) Less(i, j int) bool

func (ByActivity) Swap

func (a ByActivity) Swap(i, j int)

type Competences

type Competences []struct {
	ID       int    `json:"id"`
	Libelle  string `json:"libelle"`
	Active   bool   `json:"active"`
	ReadOnly bool   `json:"readOnly"`
}

type Coordonnees added in v1.1.0

type Coordonnees struct {
	ID            string `json:"id"`
	UtilisateurID string `json:"utilisateurId"`
	MoyenComID    string `json:"moyenComId"`
	Numero        int    `json:"numero"`
	Libelle       string `json:"libelle"`
	Flag          string `json:"flag"`
	Visible       bool   `json:"visible"`
	CanDelete     bool   `json:"canDelete"`
	CanUpdate     bool   `json:"canUpdate"`
}

type Embedded

type Embedded struct {
	Factors []Factors `json:"factors"`
}

type Factors

type Factors struct {
	ID         string `json:"id"`
	FactorType string `json:"factorType"`
	Provider   string `json:"provider"`
	VendorName string `json:"vendorName"`
}

type GestionDesDroits

type GestionDesDroits struct {
	Utilisateur Utilisateur `json:"utilisateur"`
}

type InscriptionList

type InscriptionList []struct {
	ID       string `json:"id"`
	Activite struct {
		ID           string `json:"id"`
		Type         string `json:"type"`
		TypeActivite struct {
			ID           int    `json:"id"`
			Libelle      string `json:"libelle"`
			GroupeAction struct {
				ID       int    `json:"id"`
				Libelle  string `json:"libelle"`
				Tri      string `json:"tri"`
				CanAdmin bool   `json:"canAdmin"`
			} `json:"groupeAction"`
			Action struct {
				ID           int    `json:"id"`
				Libelle      string `json:"libelle"`
				GroupeAction struct {
					ID      int    `json:"id"`
					Libelle string `json:"libelle"`
				} `json:"groupeAction"`
			} `json:"action"`
			CanAdmin bool `json:"canAdmin"`
		} `json:"typeActivite"`
		Statut string `json:"statut"`
	} `json:"activite"`
	Seance struct {
		ID string `json:"id"`
	} `json:"seance"`
	Utilisateur Utilisateur `json:"utilisateur"`
	Debut       string      `json:"debut"`
	Fin         string      `json:"fin"`
	Statut      string      `json:"statut"`
	Role        string      `json:"role"`
}

type MFAAuthRequest

type MFAAuthRequest struct {
	PassCode   string `json:"passCode"`
	StateToken string `json:"stateToken"`
}

type MFAAuthResponse

type MFAAuthResponse struct {
	Status       string `json:"status"`
	SessionToken string `json:"sessionToken"`
}

type PasswordAuth

type PasswordAuth struct {
	Password string              `json:"password"`
	Username string              `json:"username"`
	Options  PasswordAuthOptions `json:"options"`
}

type PasswordAuthOptions

type PasswordAuthOptions struct {
	WarnBeforePasswordExpired bool `json:"warnBeforePasswordExpired"`
	MultiOptionalFactorEnroll bool `json:"multiOptionalFactorEnroll"`
}

type PasswordAuthResponse

type PasswordAuthResponse struct {
	StateToken string    `json:"stateToken"`
	ExpiresAt  time.Time `json:"expiresAt"`
	Status     string    `json:"status"`
	Embedded   Embedded  `json:"_embedded"`
}

type PegassTime

type PegassTime time.Time

func (*PegassTime) PrintTimePart

func (p *PegassTime) PrintTimePart() string

func (*PegassTime) UnmarshalJSON

func (p *PegassTime) UnmarshalJSON(b []byte) error

type RechercheBenevoles

type RechercheBenevoles struct {
	List    []Utilisateur `json:"content"`
	Page    int           `json:"number"`
	Total   int           `json:"totalPages"`
	Perpage int           `json:"perpage"`
	Last    bool          `json:"last"`
}

type RegulationStats

type RegulationStats struct {
	OPR, Eval, Regul int
}

type Role

type Role struct {
	ID      string `json:"id"`
	Libelle string `json:"libelle"`
	Type    string `json:"type"`
}

type Seance

type Seance struct {
	ID       string `json:"id"`
	Activite struct {
		ID      string `json:"id"`
		Type    string `json:"type"`
		Libelle string `json:"libelle"`
	} `json:"activite"`
	GroupeAction struct {
		ID       int    `json:"id"`
		Libelle  string `json:"libelle"`
		Tri      string `json:"tri"`
		CanAdmin bool   `json:"canAdmin"`
	} `json:"groupeAction"`
	Debut          PegassTime `json:"debut"`
	Fin            PegassTime `json:"fin"`
	Adresse        string     `json:"adresse"`
	RevisionNumber int        `json:"revisionNumber"`
	RoleConfigList []struct {
		ID       string `json:"id"`
		Code     string `json:"code"`
		Role     string `json:"role"`
		Actif    bool   `json:"actif"`
		Effectif int    `json:"effectif"`
		Type     string `json:"type"`
	} `json:"roleConfigList"`
}

type SeanceList

type SeanceList struct {
	Content          []Seance    `json:"content"`
	Last             bool        `json:"last"`
	TotalElements    int         `json:"totalElements"`
	TotalPages       int         `json:"totalPages"`
	Size             int         `json:"size"`
	Number           int         `json:"number"`
	Sort             interface{} `json:"sort"`
	First            bool        `json:"first"`
	NumberOfElements int         `json:"numberOfElements"`
}

type Stats

type Stats struct {
	ID          interface{} `json:"id"`
	Label       string      `json:"label"`
	Tri         interface{} `json:"tri"`
	Nombre      int         `json:"nombre"`
	Pourcentage float64     `json:"pourcentage"`
}

type StatsBenevole

type StatsBenevole struct {
	Debut        string `json:"debut"`
	Fin          string `json:"fin"`
	Unite        string `json:"unite"`
	Statistiques []struct {
		StatistiquesGroupeAction Stats   `json:"statistiquesGroupeAction"`
		StatistiquesActivites    []Stats `json:"statistiquesActivites"`
	} `json:"statistiques"`
	StatistiquesActivite []Stats `json:"statistiquesActivite"`
	IDUtilisateur        string  `json:"idUtilisateur"`
}

type Structure

type Structure struct {
	ID            int    `json:"id"`
	TypeStructure string `json:"typeStructure"`
	Libelle       string `json:"libelle"`
	LibelleCourt  string `json:"libelleCourt"`
	Adresse       string `json:"adresse"`
	Telephone     string `json:"telephone"`
	Mail          string `json:"mail"`
	SiteWeb       string `json:"siteWeb"`
	Parent        struct {
		ID int `json:"id"`
	} `json:"parent"`
	StructureMenantActiviteList []struct {
		ID      int    `json:"id"`
		Libelle string `json:"libelle"`
	} `json:"structureMenantActiviteList"`
}

type StructureList

type StructureList struct {
	ID               string `json:"id"`
	Nom              string `json:"nom"`
	TypeZoneGeo      string `json:"typeZoneGeo"`
	StructuresFilles []struct {
		ID            int    `json:"id"`
		TypeStructure string `json:"typeStructure"`
		Libelle       string `json:"libelle"`
	} `json:"structuresFilles"`
}

type TypeActivite

type TypeActivite struct {
	ID      int    `json:"id"`
	Libelle string `json:"libelle"`
	Action  Action `json:"action"`
}

type UserTraining added in v1.6.0

type UserTraining struct {
	ID        string `json:"id"`
	Formation struct {
		ID        string `json:"id"`
		Code      string `json:"code"`
		Libelle   string `json:"libelle"`
		Recyclage bool   `json:"recyclage"`
	} `json:"formation"`
	DateObtention string `json:"dateObtention"`
	DateRecyclage string `json:"dateRecyclage,omitempty"`
}

type Utilisateur

type Utilisateur struct {
	ID          string        `json:"id"`
	Structure   Structure     `json:"structure"`
	Nom         string        `json:"nom"`
	Prenom      string        `json:"prenom"`
	Coordonnees []Coordonnees `json:"coordonnees"`
	Actif       bool          `json:"actif"`
	Mineur      bool          `json:"mineur"`
	Commentaire string        `json:"commentaire,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL