|
@@ -37,6 +37,7 @@ type ActivityDetail struct {
|
|
|
IsLimitPeople int8 `json:"isLimitPeople"` // 是否限制人数 1是,0否
|
|
|
LimitPeopleNum int `json:"limitPeopleNum"` // 限制人数数量
|
|
|
ReportLink string `json:"reportLink"` // 报告链接
|
|
|
+ ReportName string `json:"reportName"` // 报告名称
|
|
|
Address string `json:"address"` // 活动地址
|
|
|
RegisteredNum int `json:"registeredNum"` // 已报名人数
|
|
|
}
|
|
@@ -60,7 +61,7 @@ func GetDetailById(activityId int) (activity *ActivityDetail, err error) {
|
|
|
fields := []string{
|
|
|
"activity_id", "activity_name", "activity_type_id", "activity_type_name", "start_time", "end_time", "speaker", "city", "speaker_head_pic", "speaker_background_pic",
|
|
|
"mainland_tel", "hong_kong_tel", "taiwan_tel", "america_tel", "singapore_tel", "participation_code",
|
|
|
- "link_participants", "is_limit_people", "limit_people_num", "report_link", "address", "first_activity_type_id", "first_activity_type_name",
|
|
|
+ "link_participants", "is_limit_people", "limit_people_num", "report_link", "report_name", "address", "first_activity_type_id", "first_activity_type_name",
|
|
|
}
|
|
|
err = global.DEFAULT_MYSQL.Model(YbActivity{}).Select(fields).Where("activity_id", activityId).Scan(&activity).Error
|
|
|
return
|