Browse Source

修改demo

yjp 1 year ago
parent
commit
e16ea7fc24
1 changed files with 15 additions and 15 deletions
  1. 15 15
      project/server/main.go

+ 15 - 15
project/server/main.go

@@ -43,38 +43,38 @@ import (
 // curl -X DELETE "http://localhost:31000/example/api/v1/identity/delete?id=6e12ee71397746b8920fa94e5f229366"
 
 // Class-Student
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"a365856f8440481ab7ccc93885620ad0", "studentIds": ["27b18d3ac2eb40adbdf9ba11b2e0e4b5"]}' "http://localhost:31000/example/api/v1/class/student/update"
-// curl -X GET "http://localhost:31000/example/api/v1/class/student/query?id=a365856f8440481ab7ccc93885620ad0"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"82f03353db3545058c135f15c9a86edb", "studentIds": ["eec8c4def70d44e1ba234c089db40d17"]}' "http://localhost:31000/example/api/v1/class/student/update"
+// curl -X GET "http://localhost:31000/example/api/v1/class/student/query?id=82f03353db3545058c135f15c9a86edb"
 
 // Student-Class
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"27b18d3ac2eb40adbdf9ba11b2e0e4b5", "classId": "a365856f8440481ab7ccc93885620ad0"}' "http://localhost:31000/example/api/v1/student/class/update"
-// curl -X GET "http://localhost:31000/example/api/v1/student/class/query?id=27b18d3ac2eb40adbdf9ba11b2e0e4b5"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"eec8c4def70d44e1ba234c089db40d17", "classId": "82f03353db3545058c135f15c9a86edb"}' "http://localhost:31000/example/api/v1/student/class/update"
+// curl -X GET "http://localhost:31000/example/api/v1/student/class/query?id=eec8c4def70d44e1ba234c089db40d17"
 // curl -X GET "http://localhost:31000/example/api/v1/student/class/queryWith?name=test"
 
 // Student-Family
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"00254b4a7102429db35e6edc8e47a764", "familyId": "df3aeee04ce94c17878bbb5383d15f18"}' "http://localhost:31000/example/api/v1/student/family/update"
-// curl -X GET "http://localhost:31000/example/api/v1/student/family/query?id=00254b4a7102429db35e6edc8e47a764"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"eec8c4def70d44e1ba234c089db40d17", "familyId": "f21a273d8b144616925e3931ec2e47b5"}' "http://localhost:31000/example/api/v1/student/family/update"
+// curl -X GET "http://localhost:31000/example/api/v1/student/family/query?id=eec8c4def70d44e1ba234c089db40d17"
 // curl -X GET "http://localhost:31000/example/api/v1/student/family/queryWith?name=test"
 
 // Family-Student
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"df3aeee04ce94c17878bbb5383d15f18", "studentId": "00254b4a7102429db35e6edc8e47a764"}' "http://localhost:31000/example/api/v1/family/student/update"
-// curl -X GET "http://localhost:31000/example/api/v1/family/student/query?id=df3aeee04ce94c17878bbb5383d15f18"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"f21a273d8b144616925e3931ec2e47b5", "studentId": "eec8c4def70d44e1ba234c089db40d17"}' "http://localhost:31000/example/api/v1/family/student/update"
+// curl -X GET "http://localhost:31000/example/api/v1/family/student/query?id=f21a273d8b144616925e3931ec2e47b5"
 // curl -X GET "http://localhost:31000/example/api/v1/family/student/queryWith?father=father"
 
 // Student-Identity
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"00254b4a7102429db35e6edc8e47a764", "identityIds": ["4481fd110a5f46d2babe52b650981384"]}' "http://localhost:31000/example/api/v1/student/identity/update"
-// curl -X GET "http://localhost:31000/example/api/v1/student/identity/query?id=00254b4a7102429db35e6edc8e47a764"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"eec8c4def70d44e1ba234c089db40d17", "identityIds": ["a36d5c24f5214e7fa4c3e92f2f73ec1f"]}' "http://localhost:31000/example/api/v1/student/identity/update"
+// curl -X GET "http://localhost:31000/example/api/v1/student/identity/query?id=eec8c4def70d44e1ba234c089db40d17"
 
 // Identity-Student
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"4481fd110a5f46d2babe52b650981384", "studentIds": ["00254b4a7102429db35e6edc8e47a764"]}' "http://localhost:31000/example/api/v1/identity/student/update"
-// curl -X GET "http://localhost:31000/example/api/v1/identity/student/query?id=4481fd110a5f46d2babe52b650981384"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"a36d5c24f5214e7fa4c3e92f2f73ec1f", "studentIds": ["eec8c4def70d44e1ba234c089db40d17"]}' "http://localhost:31000/example/api/v1/identity/student/update"
+// curl -X GET "http://localhost:31000/example/api/v1/identity/student/query?id=a36d5c24f5214e7fa4c3e92f2f73ec1f"
 
 // Student-Hobby
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"a3f28141a96e4cec850b485bd9c38813", "hobbyIds": ["42b305bb292c4082a3e91a2967f11111"]}' "http://localhost:31000/example/api/v1/student/hobby/update"
-// curl -X GET "http://localhost:31000/example/api/v1/student/hobby/query?id=a3f28141a96e4cec850b485bd9c38813"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"eec8c4def70d44e1ba234c089db40d17", "hobbyIds": ["42b305bb292c4082a3e91a2967f11111"]}' "http://localhost:31000/example/api/v1/student/hobby/update"
+// curl -X GET "http://localhost:31000/example/api/v1/student/hobby/query?id=eec8c4def70d44e1ba234c089db40d17"
 
 // Hobby-Student
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"42b305bb292c4082a3e91a2967f11111", "studentIds": ["00254b4a7102429db35e6edc8e47a764"]}' "http://localhost:31000/example/api/v1/hobby/student/update"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"42b305bb292c4082a3e91a2967f11111", "studentIds": ["eec8c4def70d44e1ba234c089db40d17"]}' "http://localhost:31000/example/api/v1/hobby/student/update"
 // curl -X GET "http://localhost:31000/example/api/v1/hobby/student/query?id=42b305bb292c4082a3e91a2967f11111"
 
 // Sql Executor