XinYeYouKu/app/http/entities/front/activity.go

21 lines
511 B
Go
Raw Normal View History

2024-06-12 19:11:00 +08:00
package front
import (
"qteam/app/models/activitymodel"
"qteam/app/utils"
)
type ActivityResponse struct {
Id int `json:"id"`
Name string `json:"name"`
Banner string `json:"banner"`
Description string `json:"description"`
CreateTime string `json:"create_time"`
Product []ProductResponse `json:"product"`
}
func (p *ActivityResponse) ResponseFromDb() (do activitymodel.Activity) {
utils.EntityCopy(p, &do)
return
}