|
@@ -1,7 +1,10 @@
|
|
|
package api
|
|
|
|
|
|
import (
|
|
|
+ "fmt"
|
|
|
+
|
|
|
"github.com/gin-gonic/gin"
|
|
|
+ "go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
)
|
|
|
|
|
|
func Printr(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
@@ -39,5 +42,17 @@ func Printr(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
// // return repo.RepoUpdateSetDocProps(apictx.CreateRepoCtx(), repo.CollectionOrder, "636b5b4a0bab456f8a558962", repo.Map{"status": status})
|
|
|
// // sort, _ := strconv.Atoi("-1")
|
|
|
// // return status, nil
|
|
|
- return len("61c3d4a0d6649a1d7353e2d9"), nil
|
|
|
+ n := []int{1, 2, 3, 4, 5}
|
|
|
+ // for _, v := range n {
|
|
|
+ // fmt.Println(primitive.NewObjectID().Hex())
|
|
|
+ // }
|
|
|
+ for i := 0; i < len(n); i++ {
|
|
|
+ fmt.Println(primitive.NewObjectID().Hex())
|
|
|
+ }
|
|
|
+ fmt.Println("------------------------------------------")
|
|
|
+ for i := 0; i < len(n); i++ {
|
|
|
+ fmt.Println(primitive.NewObjectID().Hex())
|
|
|
+ }
|
|
|
+
|
|
|
+ return "", nil
|
|
|
}
|