feat: implement wiki and submission management services with corresponding database schema and API endpoints
Build and Release / release (push) Successful in 2m3s

This commit is contained in:
2026-05-27 18:00:30 +07:00
parent 79cf5caa0b
commit e35f67e26b
16 changed files with 462 additions and 265 deletions
+3
View File
@@ -533,6 +533,7 @@ func (r *wikiRepository) CreateContent(ctx context.Context, params sqlc.CreateWi
WikiID: convert.UUIDToString(row.WikiID),
Title: row.Title,
Content: convert.TextToString(row.Content),
Preview: convert.TextToString(row.Preview),
IsDeleted: row.IsDeleted,
CreatedAt: convert.TimeToPtr(row.CreatedAt),
}, nil
@@ -576,6 +577,7 @@ func (r *wikiRepository) getContentByIDsWithFallback(ctx context.Context, ids []
WikiID: convert.UUIDToString(row.WikiID),
Title: row.Title,
Content: convert.TextToString(row.Content),
Preview: convert.TextToString(row.Preview),
IsDeleted: row.IsDeleted,
CreatedAt: convert.TimeToPtr(row.CreatedAt),
}
@@ -624,6 +626,7 @@ func (r *wikiRepository) GetContentByID(ctx context.Context, id pgtype.UUID) (*m
WikiID: convert.UUIDToString(row.WikiID),
Title: row.Title,
Content: convert.TextToString(row.Content),
Preview: convert.TextToString(row.Preview),
IsDeleted: row.IsDeleted,
CreatedAt: convert.TimeToPtr(row.CreatedAt),
}