sun-pc hace 4 meses
padre
commit
fe4bd096b3
Se han modificado 2 ficheros con 169 adiciones y 0 borrados
  1. 116 0
      src/http.client/example.json
  2. 53 0
      src/http.client/router.md

+ 116 - 0
src/http.client/example.json

@@ -0,0 +1,116 @@
+{
+  "ar": {
+    "_id": "507f1f77bcf86cd799439011",
+    "cid": "507f1f77bcf86cd799439012",
+    "cover": "https://example.com/ar/cover.jpg",
+    "name": "茅台AR体验",
+    "qr": "https://example.com/ar/qr.png",
+    "adminUrl": "https://admin.example.com/ar/1",
+    "clicks": 1000,
+    "sort": 1,
+    "createTime": "2024-12-17T09:47:17+08:00",
+    "updateTime": "2024-12-17T09:47:17+08:00",
+    "state": 1
+  },
+  "category": {
+    "_id": "507f1f77bcf86cd799439013",
+    "name": "AR展示",
+    "type": "ar",
+    "createTime": "2024-12-17T09:47:17+08:00",
+    "updateTime": "2024-12-17T09:47:17+08:00"
+  },
+  "home": {
+    "_id": "507f1f77bcf86cd799439014",
+    "content": "茅台博物馆欢迎您",
+    "createTime": "2024-12-17T09:47:17+08:00",
+    "updateTime": "2024-12-17T09:47:17+08:00"
+  },
+  "image": {
+    "_id": "507f1f77bcf86cd799439015",
+    "cid": "507f1f77bcf86cd799439016",
+    "url": "https://example.com/images/1.jpg",
+    "name": "茅台酒瓶展示",
+    "desc": "这是一个典型的茅台酒瓶展示图",
+    "clicks": 500,
+    "sort": 1,
+    "createTime": "2024-12-17T09:47:17+08:00",
+    "updateTime": "2024-12-17T09:47:17+08:00",
+    "state": 1
+  },
+  "relic": {
+    "_id": "507f1f77bcf86cd799439018",
+    "cid": "507f1f77bcf86cd799439019",
+    "number": "MT001",
+    "cover": "https://example.com/relics/1.jpg",
+    "name": "青花瓷酒瓶",
+    "url": "https://example.com/relics/detail/1",
+    "desc": "清代茅台青花瓷酒瓶",
+    "document": {
+      "repairTime": "2024-12-17T09:47:17+08:00",
+      "before": [
+        "https://example.com/relics/1/before1.jpg",
+        "https://example.com/relics/1/before2.jpg"
+      ],
+      "after": [
+        "https://example.com/relics/1/after1.jpg",
+        "https://example.com/relics/1/after2.jpg"
+      ],
+      "videos": [
+        "https://example.com/relics/1/video1.mp4"
+      ],
+      "audio": [
+        "https://example.com/relics/1/audio1.mp3"
+      ],
+      "isPublic": true
+    },
+    "clicks": 300,
+    "sort": 1,
+    "createTime": "2024-12-17T09:47:17+08:00",
+    "updateTime": "2024-12-17T09:47:17+08:00",
+    "state": 1
+  },
+  "role": {
+    "_id": "507f1f77bcf86cd799439020",
+    "name": "管理员",
+    "key": "admin",
+    "createTime": "2024-12-17T09:47:17+08:00",
+    "updateTime": "2024-12-17T09:47:17+08:00"
+  },
+  "user": {
+    "_id": "507f1f77bcf86cd799439021",
+    "roleId": "507f1f77bcf86cd799439020",
+    "loginName": "admin",
+    "password": "hashed_password",
+    "avatar": "https://example.com/avatars/1.jpg",
+    "name": "系统管理员",
+    "createTime": "2024-12-17T09:47:17+08:00",
+    "updateTime": "2024-12-17T09:47:17+08:00",
+    "state": 1
+  },
+  "video": {
+    "_id": "507f1f77bcf86cd799439022",
+    "cid": "507f1f77bcf86cd799439023",
+    "url": "https://example.com/videos/1.mp4",
+    "name": "茅台制作工艺",
+    "desc": "传统茅台酒的制作工艺展示",
+    "clicks": 800,
+    "sort": 1,
+    "createTime": "2024-12-17T09:47:17+08:00",
+    "updateTime": "2024-12-17T09:47:17+08:00",
+    "state": 1
+  },
+  "vr": {
+    "_id": "507f1f77bcf86cd799439024",
+    "cid": "507f1f77bcf86cd799439025",
+    "cover": "https://example.com/vr/cover.jpg",
+    "name": "茅台酒厂VR导览",
+    "url": "https://example.com/vr/tour",
+    "type": "scene",
+    "desc": "茅台酒厂360度全景VR导览",
+    "clicks": 1500,
+    "sort": 1,
+    "createTime": "2024-12-17T09:47:17+08:00",
+    "updateTime": "2024-12-17T09:47:17+08:00",
+    "state": 1
+  }
+}

+ 53 - 0
src/http.client/router.md

@@ -0,0 +1,53 @@
+[GIN-debug] POST   /moutai/admin/role/create --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/role/delete/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/admin/role/list   --> moutai/api.GinRouter.GETJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/role/update --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/user/login/password --> moutai/api.GinRouter.POST.ResultWrapper.func1 (5 handlers)
+[GIN-debug] POST   /moutai/admin/user/create --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/user/delete/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/admin/user/list   --> moutai/api.GinRouter.GETJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/user/update --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/user/disable/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/user/enable/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/user/profile      --> moutai/api.GinRouter.GETJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/cate/create --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/cate/delete/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/admin/cate/list   --> moutai/api.GinRouter.GETJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/cate/update --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/home/content --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/admin/home/content --> moutai/api.GinRouter.GET.ResultWrapper.func1 (5 handlers)
+[GIN-debug] POST   /moutai/admin/image/create --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/image/delete/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/image/list        --> moutai/api.GinRouter.GET.ResultWrapper.func1 (5 handlers)
+[GIN-debug] POST   /moutai/admin/image/update --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/image/on/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/image/off/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/material/create   --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/material/delete/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/material/list     --> moutai/api.GinRouter.GET.ResultWrapper.func1 (5 handlers)
+[GIN-debug] POST   /moutai/material/update   --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/video/create --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/video/delete/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/video/list        --> moutai/api.GinRouter.GET.ResultWrapper.func1 (5 handlers)
+[GIN-debug] POST   /moutai/admin/video/update --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/video/on/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/video/off/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/relic/create --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/relic/delete/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/relic/list        --> moutai/api.GinRouter.GET.ResultWrapper.func1 (5 handlers)
+[GIN-debug] POST   /moutai/admin/relic/update --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/relic/on/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/relic/off/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/vr/create   --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/vr/delete/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/vr/list           --> moutai/api.GinRouter.GET.ResultWrapper.func1 (5 handlers)
+[GIN-debug] POST   /moutai/admin/vr/update   --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/vr/on/:id   --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/vr/off/:id  --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/ar/create   --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/ar/delete/:id --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/ar/list           --> moutai/api.GinRouter.GET.ResultWrapper.func1 (5 handlers)
+[GIN-debug] POST   /moutai/admin/ar/update   --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/ar/on/:id   --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] POST   /moutai/admin/ar/off/:id  --> moutai/api.GinRouter.POSTJWT.ResultJWTWrapper.func1 (6 handlers)
+[GIN-debug] GET    /moutai/click             --> moutai/api.GinRouter.GET.ResultWrapper.func1 (5 handlers)