|
@@ -335,16 +335,14 @@ func AddSimulationRecord(ctx context.Context, c *app.RequestContext) {
|
|
|
c.JSON(consts.StatusOK, entity.HttpResult{Status: true, Code: "", Message: "仿真测试记录添加成功"})
|
|
|
}
|
|
|
|
|
|
-// QueryEvalRecord 查询算法评价记录(根据场景id及时间戳)
|
|
|
-// @router /simulation/query/eval/record [GET]
|
|
|
-func QueryEvalRecord(ctx context.Context, c *app.RequestContext) {
|
|
|
- sceneId := c.Query("sceneId")
|
|
|
- fmt.Println("sceneId", sceneId)
|
|
|
-
|
|
|
- testTime := c.Query("testTime")
|
|
|
- fmt.Println("testTime", testTime)
|
|
|
-
|
|
|
- records, err := mysql.QuerySimulationTestRecords(ctx, sceneId, testTime)
|
|
|
+// QueryTestRecord 根据条件查询仿真测试记录
|
|
|
+// @router /simulation/query/test/record [GET]
|
|
|
+func QueryTestRecord(ctx context.Context, c *app.RequestContext) {
|
|
|
+ var record model.SimulationTestRecord
|
|
|
+ err := c.BindAndValidate(&record)
|
|
|
+ fmt.Println("record", record)
|
|
|
+
|
|
|
+ records, err := mysql.QuerySimulationTestRecords(ctx, &record)
|
|
|
if err != nil {
|
|
|
c.JSON(consts.StatusOK, entity.HttpResult{Status: false, Code: "", Message: "仿真测试记录查询失败", Details: ""})
|
|
|
return
|