浏览代码

fix test api

sun-pc 4 月之前
父节点
当前提交
ea9b5e952d
共有 6 个文件被更改,包括 7 次插入11 次删除
  1. 1 1
      src/db/db.go
  2. 2 2
      src/http.client/category.http
  3. 1 2
      src/http.client/image.http
  4. 1 2
      src/http.client/relic.http
  5. 1 2
      src/http.client/video.http
  6. 1 2
      src/http.client/vr.http

+ 1 - 1
src/db/db.go

@@ -36,7 +36,7 @@ func (db *MongoDB) GetOrCreateDatabase(name string) *mongo.Database {
 
 func NewMongoDB(bus *comm.NatsBus) *MongoDB {
 
-	inst, err := bus.NewMongoDBFromConfig("moutai-mongo")
+	inst, err := bus.NewMongoDBFromConfigDev("moutai-mongo")
 
 	if err != nil {
 		panic(err)

+ 2 - 2
src/http.client/category.http

@@ -7,8 +7,8 @@ Content-Type: application/json
 Authorization: {{token}}
 
 {
-    "name": "图片分类",
-    "type": "image"
+    "name": "vr分类",
+    "type": "vr"
 }
 
 ### 删除分类

文件差异内容过多而无法显示
+ 1 - 2
src/http.client/image.http


文件差异内容过多而无法显示
+ 1 - 2
src/http.client/relic.http


文件差异内容过多而无法显示
+ 1 - 2
src/http.client/video.http


文件差异内容过多而无法显示
+ 1 - 2
src/http.client/vr.http


部分文件因为文件数量过多而无法显示