package home import ( "github.com/zhang2092/go-url-shortener/internal/db" "github.com/zhang2092/go-url-shortener/internal/templ/base" "net/http" ) templ css() { } templ js() { } templ Home(r *http.Request, data []*db.UserRelateUrl) { @base.Base(r, css(), js()) {

短地址列表 添加

for _, item := range data { }
原地址 短地址 是否有效 删除
{ item.OriginUrl } { item.ShortUrl } if item.Status == 0 { YES } else { NO } if item.Status == 0 { }
} }