|
@@ -53,6 +53,7 @@ type CygxResourceDataResp struct {
|
|
|
ChartPermissionId int `description:"权限id"`
|
|
|
Expert string `description:"专家"`
|
|
|
Speaker string `description:"主讲人"`
|
|
|
+ DistinguishedGuest string `description:"嘉宾"`
|
|
|
ActivityTime string `description:"活动预期时间"`
|
|
|
ResourceUrl string `description:"链接"`
|
|
|
AuthInfo *UserPermissionAuthInfo
|
|
@@ -67,7 +68,7 @@ type HomeResourceDataListResp struct {
|
|
|
List []*CygxResourceDataResp `description:"列表"`
|
|
|
}
|
|
|
|
|
|
-//列表
|
|
|
+// 列表
|
|
|
func GetResourceDataList(condition string, pars []interface{}, startSize, pageSize int) (items []*CygxResourceData, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := `SELECT * FROM cygx_resource_data WHERE 1= 1 `
|
|
@@ -79,7 +80,7 @@ func GetResourceDataList(condition string, pars []interface{}, startSize, pageSi
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-//获取用户报名成功数量
|
|
|
+// 获取用户报名成功数量
|
|
|
func GetResourceDataCount(condition string, pars []interface{}) (count int, err error) {
|
|
|
sqlCount := `SELECT COUNT(1) AS count FROM cygx_resource_data WHERE 1= 1 ` + condition
|
|
|
o := orm.NewOrm()
|