feat: ad manager

This commit is contained in:
zzw
2026-08-21 17:38:39 +08:00
parent f05656580c
commit caafc455bb
34 changed files with 454 additions and 300 deletions
+10
View File
@@ -18,3 +18,13 @@ func toAdItem(row dao.AdInfo) *ad.Item {
CreateTime: row.CreateTime,
}
}
func toAdWebItem(row dao.AdWebInfo) *ad.WebItem {
return &ad.WebItem{
Id: int64(row.Id),
Type: uint32(row.Type),
Image: row.Image,
Content: row.Content,
Url: row.Url,
}
}