2024-09-11 00:52:18 +00:00
|
|
|
// Package partials THIS FILE IS GENERATED. DO NOT EDIT.
|
2024-09-12 18:13:15 +00:00
|
|
|
package load
|
2024-09-11 00:52:18 +00:00
|
|
|
|
|
|
|
|
import "mhtml/h"
|
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
2024-09-12 18:13:15 +00:00
|
|
|
import "mhtml/partials"
|
2024-09-11 21:08:35 +00:00
|
|
|
import "mhtml/partials/patient"
|
2024-09-11 17:31:40 +00:00
|
|
|
import "mhtml/partials/sheet"
|
2024-09-11 00:52:18 +00:00
|
|
|
|
|
|
|
|
func GetPartialFromContext(ctx *fiber.Ctx) *h.Partial {
|
|
|
|
|
path := ctx.Path()
|
2024-09-11 17:31:40 +00:00
|
|
|
if path == "NewsSheet" || path == "/mhtml/partials.NewsSheet" {
|
2024-09-12 18:13:15 +00:00
|
|
|
return partials.NewsSheet(ctx)
|
2024-09-11 00:52:18 +00:00
|
|
|
}
|
2024-09-11 17:31:40 +00:00
|
|
|
if path == "NewsSheetOpenCount" || path == "/mhtml/partials.NewsSheetOpenCount" {
|
2024-09-12 18:13:15 +00:00
|
|
|
return partials.NewsSheetOpenCount(ctx)
|
2024-09-11 17:31:40 +00:00
|
|
|
}
|
2024-09-11 21:08:35 +00:00
|
|
|
if path == "Create" || path == "/mhtml/partials/patient.Create" {
|
|
|
|
|
return patient.Create(ctx)
|
2024-09-11 17:31:40 +00:00
|
|
|
}
|
2024-09-11 21:08:35 +00:00
|
|
|
if path == "List" || path == "/mhtml/partials/patient.List" {
|
|
|
|
|
return patient.List(ctx)
|
|
|
|
|
}
|
2024-09-12 02:06:34 +00:00
|
|
|
if path == "AddPatientSheetPartial" || path == "/mhtml/partials/patient.AddPatientSheetPartial" {
|
|
|
|
|
return patient.AddPatientSheetPartial(ctx)
|
2024-09-11 17:31:40 +00:00
|
|
|
}
|
2024-09-12 18:13:15 +00:00
|
|
|
if path == "ValidateForm" || path == "/mhtml/partials/patient.ValidateForm" {
|
|
|
|
|
return patient.ValidateForm(ctx)
|
|
|
|
|
}
|
2024-09-11 17:31:40 +00:00
|
|
|
if path == "Close" || path == "/mhtml/partials/sheet.Close" {
|
|
|
|
|
return sheet.Close(ctx)
|
2024-09-11 00:52:18 +00:00
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|