feat: ad manager
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user