feat(internal/reminder): Signal提醒

This commit is contained in:
mei
2025-10-17 20:18:42 +08:00
parent 887d6c8618
commit 71d0e095c8
7 changed files with 80 additions and 40 deletions
+19
View File
@@ -0,0 +1,19 @@
package internal
import (
"html/template"
"io/fs"
"net/http"
"github.com/gin-gonic/gin"
)
// loadTemplates loads templates from the embedded file system
func LoadTemplates(filesystem fs.FS) *template.Template {
templ := template.Must(template.New("").ParseFS(filesystem, "*.html"))
return templ
}
func IndexPage(c *gin.Context) {
c.HTML(http.StatusOK, "index.html", nil)
}