소스 검색

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


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.