|
@@ -10,21 +10,21 @@ func GetConcurrentData(appid string, productId int, c *gin.Context) {
|
|
if productId == 1000 {
|
|
if productId == 1000 {
|
|
utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
|
|
utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
|
|
return ProjectListData(productId, appid, "河南大学", "", "", false)
|
|
return ProjectListData(productId, appid, "河南大学", "", "", false)
|
|
- }, "", "", true)
|
|
|
|
|
|
+ }, `{"bidTime":"","projectName":"河南大学","winner":""}`, "127.0.0.1", true)
|
|
} else if productId == 1001 {
|
|
} else if productId == 1001 {
|
|
utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
|
|
utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
|
|
return ProjectDetailData("5f6bc00c499cb0822d7e3842")
|
|
return ProjectDetailData("5f6bc00c499cb0822d7e3842")
|
|
- }, "", "", true)
|
|
|
|
|
|
+ }, `{"id":"5f6bc00c499cb0822d7e3842"}`, "127.0.0.1", true)
|
|
} else if productId == 1002 {
|
|
} else if productId == 1002 {
|
|
utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
|
|
utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
|
|
return ProjectListData(productId, appid, "", "中铁十五局集团有限公司", "", true)
|
|
return ProjectListData(productId, appid, "", "中铁十五局集团有限公司", "", true)
|
|
- }, "", "", true)
|
|
|
|
|
|
+ }, `{"winner":"中铁十五局集团有限公司"}`, "127.0.0.1", true)
|
|
} else {
|
|
} else {
|
|
utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
|
|
utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
|
|
datas := []map[string]interface{}{map[string]interface{}{
|
|
datas := []map[string]interface{}{map[string]interface{}{
|
|
"title": "中铁十五局集团有限公司",
|
|
"title": "中铁十五局集团有限公司",
|
|
}}
|
|
}}
|
|
return datas, 200, nil
|
|
return datas, 200, nil
|
|
- }, "", "", true)
|
|
|
|
|
|
+ }, "并发测试", "127.0.0.1", true)
|
|
}
|
|
}
|
|
}
|
|
}
|