|
@@ -82,9 +82,11 @@ func _handleListQuery(c *gin.Context) (string, []interface{}, string) {
|
|
|
}
|
|
|
reqType := c.DefaultQuery("activity_type", "0")
|
|
|
if reqType != "0" {
|
|
|
- activityType, _ := strconv.Atoi(reqType)
|
|
|
- condition += ` AND activity_type_id = ?`
|
|
|
- pars = append(pars, activityType)
|
|
|
+ activityTypeId, _ := strconv.Atoi(reqType)
|
|
|
+ activityTypeIds, _ := activity.GetTypeIdsByPid(activityTypeId)
|
|
|
+ activityTypeIds = append(activityTypeIds, activityTypeId)
|
|
|
+ condition += ` AND activity_type_id IN (?)`
|
|
|
+ pars = append(pars, activityTypeIds)
|
|
|
}
|
|
|
return condition, pars, order
|
|
|
}
|
|
@@ -100,6 +102,7 @@ func _handleListQuery(c *gin.Context) (string, []interface{}, string) {
|
|
|
// @Param activity_id query int true "活动ID"
|
|
|
// @Success 200 {string} string "操作成功"
|
|
|
// @failure 400 {string} string "操作失败"
|
|
|
+// @failure 4001 {object} activity.RemindCheckInfo "指定错误"
|
|
|
// @Router /activity/addRemind [post]
|
|
|
func AddRemind(c *gin.Context) {
|
|
|
var req activity2.RemindReq
|
|
@@ -168,6 +171,7 @@ func CancelRemind(c *gin.Context) {
|
|
|
// @Param activity_id query int true "活动ID"
|
|
|
// @Success 200 {string} string "操作成功"
|
|
|
// @failure 400 {string} string "操作失败"
|
|
|
+// @failure 4001 {object} activity.RegisterCheckInfo "指定错误"
|
|
|
// @Router /activity/registerActivity [post]
|
|
|
func RegisterActivity(c *gin.Context) {
|
|
|
var req activity2.RegisterReq
|