suncloud 1 년 전
부모
커밋
07e3ae5e1e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/api/test.go

+ 1 - 1
src/api/test.go

@@ -84,7 +84,7 @@ func TestList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 		Page:        page,
 		Size:        size,
 		Query:       query,
-		// Sort:        bson.D{bson.E{Key: "sort", Value: 1}, bson.E{Key: "createTime", Value: 1}},
+		Sort:        bson.M{"createTime": -1},
 	})
 }