feat: update template

This commit is contained in:
2026-08-19 22:05:49 +08:00
parent 0e674e9d56
commit 5a71093b0c
67 changed files with 2070 additions and 585 deletions

View File

@@ -30,7 +30,7 @@ WITH visitor AS (
)
INSERT INTO post_stats (
post_id,
view
view_count
)
SELECT
post_id,
@@ -38,7 +38,7 @@ SELECT
FROM visitor
ON CONFLICT (post_id)
DO UPDATE
SET view = post_stats.view + 1
SET view_count = post_stats.view_count + 1
`
type IncrementPostStatsViewParams struct {