add: return id for banner list

This commit is contained in:
Yansong Zhang 2025-10-13 11:04:21 +08:00
parent ae2bd7d116
commit b95f4822c3
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ class BannerApi(Resource):
result = []
for banner in banners:
banner_data = {
"id": banner.id,
"content": banner.content, # Already parsed as JSON by SQLAlchemy
"link": banner.link,
"sort": banner.sort,