21 lines
511 B
Go
21 lines
511 B
Go
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
|
|
}
|