package service import ( "sfis/utils" "github.com/gin-gonic/gin" ) func GetConcurrentData(appid string, productId int, c *gin.Context) { if productId == 1000 { utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) { return ProjectListData(productId, appid, "河南大学", "", "", false) }, "", "", true) } else if productId == 1001 { utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) { return ProjectDetailData("5f6bc00c499cb0822d7e3842") }, "", "", true) } else if productId == 1002 { utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) { return ProjectListData(productId, appid, "", "中铁十五局集团有限公司", "", true) }, "", "", true) } else { utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) { return []map[string]interface{}{}, 200, nil }, "", "", true) } }