Documentation ¶
Index ¶
- func AutoMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
- func AutoNewMonthlyStat(archive_date ...string)
- func CreateReportsTable()
- func DeleteReportById(id int) error
- func ForceMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
- func InitRoutes()
- func Launcher()
- func MonthlyStatShowByDate(w http.ResponseWriter, r *http.Request)
- func MonthlyStatsIndex(w http.ResponseWriter, r *http.Request)
- func NewMonthlyStat(stat *Report_Stat)
- func NewReport(rpt *Report)
- func ReportsCreate(w http.ResponseWriter, r *http.Request)
- func ReportsDelete(w http.ResponseWriter, r *http.Request)
- func ReportsIndex(w http.ResponseWriter, r *http.Request)
- func ReportsShowById(w http.ResponseWriter, r *http.Request)
- func ReportsUpdate(w http.ResponseWriter, r *http.Request)
- func Specimen()
- func TheDb() *sql.DB
- func TheLogger() *logger.Logger
- func TheRouter() *mux.Router
- func TheSecureRouter() *mux.Router
- func UpdateMonthlyStat(stat *Report_Stat)
- func UpdateReport(rpt *Report)
- type Report
- type Report_Stat
- type Report_Stats
- type Reports
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMonthlyStatCreate ¶
func AutoMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
func AutoNewMonthlyStat ¶
func AutoNewMonthlyStat(archive_date ...string)
func CreateReportsTable ¶
func CreateReportsTable()
func DeleteReportById ¶
func ForceMonthlyStatCreate ¶
func ForceMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
func InitRoutes ¶
func InitRoutes()
func MonthlyStatShowByDate ¶
func MonthlyStatShowByDate(w http.ResponseWriter, r *http.Request)
func MonthlyStatsIndex ¶
func MonthlyStatsIndex(w http.ResponseWriter, r *http.Request)
func NewMonthlyStat ¶
func NewMonthlyStat(stat *Report_Stat)
func ReportsCreate ¶
func ReportsCreate(w http.ResponseWriter, r *http.Request)
func ReportsDelete ¶
func ReportsDelete(w http.ResponseWriter, r *http.Request)
func ReportsIndex ¶
func ReportsIndex(w http.ResponseWriter, r *http.Request)
func ReportsShowById ¶
func ReportsShowById(w http.ResponseWriter, r *http.Request)
func ReportsUpdate ¶
func ReportsUpdate(w http.ResponseWriter, r *http.Request)
func TheSecureRouter ¶
func UpdateMonthlyStat ¶
func UpdateMonthlyStat(stat *Report_Stat)
func UpdateReport ¶
func UpdateReport(rpt *Report)
Types ¶
type Report ¶
type Report struct { // Id of the report // in: int // read only: true Id int `json:"id"` // Type of the report // in: string // example: event // required: true Type string `json:"type"` // External reference of the report // in: int // example: 1 // required: true RefExt int `json:"ref_ext"` // Name of the report // in: string // example: Report Ligue // required: true Name string `json:"name"` // Date of the event/planning/custom // in: string // example: 2021-04-14 // required: true Date string `json:"date"` // Comment of the report // in: string // example: It was amazing ! // required: true Comment string `json:"comment"` // Number reel of attendees of the event/planning/custom // in: int // example: 20 // required: true NbReelAtt int `json:"nb_reel_attendees"` // Number subscribes of attendees of the event/planning/custom // in: int // example: 20 // required: true NbSubsAtt int `json:"nb_subscribe_attendees"` // List of staffs of the event/planning/custom // in: string // example: John Smith, Toto titi, Ash Ketchum // required: true StaffsList string `json:"staffs_list"` // Number of hours of preparation // in: float // example: 4 // required: true NbHoursPrepa float64 `json:"nb_hours_prepa"` // Number of hours of the event/planning/custom // in: float // example: 12 // required: true NbHours float64 `json:"nb_hours"` // Number of volunteer staffs of the event/planning/custom // in: float // excample: 3 NbStaffsVlt float64 `json:"nb_staffs_vlt"` // Number of employee staffs of the event/planning/custom // in: float // example: 0 // required: true NbStaffsEmp float64 `json:"nb_staffs_emp"` // Number of Civic service staffs of the event/planning/custom // in: float // example: 0 // required: true NbStaffsScv float64 `json:"nb_staffs_scv"` // Taux volunteer Valorisation of the event/planning/custom // in: float // example: 18 // required: true TauxValorisationVlt float64 `json:"taux_valorisation_vlt"` // Taux employee Valorisation of the event/planning/custom // in: float // example: 18 // required: true TauxValorisationEmp float64 `json:"taux_valorisation_emp"` // Taux civic service Valorisation of the event/planning/custom // in: float // example: 18 // required: true TauxValorisationScv float64 `json:"taux_valorisation_scv"` // Code public of the event/planning/custom // in: string // example: ALL // required: true CodePublic string `json:"code_public"` // Code projet of the event/planning/custom // in: string // example: PKMN // required: true CodeProject string `json:"code_project"` }
swagger:model Report
func FindReportById ¶
type Report_Stat ¶
type Report_Stat struct { // Id of the entry // in: int // read only: true Id int `json:"id"` // Archive date of the stat // in: string // example: 2023-01 // required: true ArchiveDate string `json:"archive_date"` // Number of report by code public // in: json // example: {"CHAMP": 12, "MAST": 4} // read only: true NbPerCodePublic json.RawMessage `json:"nb_per_codepublic"` // Number of report by code project // in: json // example: {"PKM": 1, "SMI": 4} // read only: true NbPerCodeProject json.RawMessage `json:"nb_per_codeproject"` // Number of report by type // in: json // example: {"student": 12, "worker": 4} // read only: true NbPerType json.RawMessage `json:"nb_per_type"` // Number of report total // in: int // example: 12 // read only: true NbTotal int `json:"nb_total"` // Number of hours for a volunteer by code // in: json // example: {"PKM": 12, "SMI": 4} // read only: true HoursVltCodes json.RawMessage `json:"hours_vlt_per_codes"` // Number of hours for an employee by code // in: json // example: {"PKM": 12, "SMI": 4} // read only: true HoursEmpCodes json.RawMessage `json:"hours_emp_per_codes"` // Number of hours for a scv by code // in: json // example: {"PKM": 12, "SMI": 4} // read only: true HoursScvCodes json.RawMessage `json:"hours_scv_per_codes"` // Valorisation for a volunteer by code // in: json // example: {"PKM": 12, "SMI": 4} // read only: true ValoVltCodes json.RawMessage `json:"valo_vlt_per_codes"` // Valorisation for an employee by code // in: json // example: {"PKM": 12, "SMI": 4} // read only: true ValoEmpCodes json.RawMessage `json:"valo_emp_per_codes"` // Valorisation for a scv by code // in: json // example: {"PKM": 12, "SMI": 4} // read only: true ValoScvCodes json.RawMessage `json:"valo_scv_per_codes"` // CreatedAt date of the stat // in: time.Time // read only: true CreatedAt time.Time `json:"created_at"` // UpdatedAt date of the stat // in: time.Time // read only: true UpdatedAt time.Time `json:"updated_at"` }
swagger:model Report_Stat
func FindMonthlyStatByDate ¶
func FindMonthlyStatByDate(archive_date string) *Report_Stat
type Report_Stats ¶
type Report_Stats []Report_Stat
func AllMonthlyStats ¶
func AllMonthlyStats() *Report_Stats
type Reports ¶
type Reports []Report
func AllReports ¶
func AllReports() *Reports
func FindReportsByDate ¶
Click to show internal directories.
Click to hide internal directories.