You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
437 B
19 lines
437 B
package comment_count
|
|
|
|
import "github.com/TremblingV5/DouTok/applications/comment/infra/model"
|
|
|
|
type CommentCountList []*Entity
|
|
|
|
func NewListFromModels(models []*model.CommentCount) CommentCountList {
|
|
var result CommentCountList
|
|
for _, model := range models {
|
|
result = append(result, &Entity{
|
|
Id: model.Id,
|
|
Number: model.Number,
|
|
CreatedAt: model.CreatedAt,
|
|
UpdatedAt: model.UpdatedAt,
|
|
})
|
|
}
|
|
|
|
return result
|
|
}
|
|
|