浏览代码

修改包

yjp 1 年之前
父节点
当前提交
5c87988135
共有 2 个文件被更改,包括 19 次插入19 次删除
  1. 1 1
      go.mod
  2. 18 18
      project/gateway/main.go

+ 1 - 1
go.mod

@@ -3,7 +3,7 @@ module baize-demo
 go 1.22.3
 
 require (
-	git.sxidc.com/go-framework/baize v0.10.0
+	git.sxidc.com/go-framework/baize v0.10.1
 	git.sxidc.com/go-tools/utils v1.5.15
 	git.sxidc.com/service-supports/fserr v0.3.5
 	git.sxidc.com/service-supports/fslog v0.5.9

+ 18 - 18
project/gateway/main.go

@@ -17,10 +17,10 @@ import (
 
 // Class
 // curl -X POST -H "Content-Type: application/json" -d '{"name":"test", "studentNum": 10}' "http://localhost:32000/gateway/api/v1/class/create"
-// curl -X PUT -H "Content-Type: application/json" -d '{"id":"5a1645efeff64852a41b28268b232209", "name":"test-new"}' "http://localhost:32000/gateway/api/v1/class/update"
+// curl -X PUT -H "Content-Type: application/json" -d '{"id":"1a6103829c7142d49a81106815b11319", "name":"test-new"}' "http://localhost:32000/gateway/api/v1/class/update"
 // curl -X GET "http://localhost:32000/gateway/api/v1/class/query?name=test-new&pageNo=1&pageSize=1"
-// curl -X GET "http://localhost:32000/gateway/api/v1/class/get?id=5a1645efeff64852a41b28268b232209"
-// curl -X DELETE "http://localhost:32000/gateway/api/v1/class/delete?id=5a1645efeff64852a41b28268b232209"
+// curl -X GET "http://localhost:32000/gateway/api/v1/class/get?id=1a6103829c7142d49a81106815b11319"
+// curl -X DELETE "http://localhost:32000/gateway/api/v1/class/delete?id=1a6103829c7142d49a81106815b11319"
 
 // Student
 // curl -X POST -H "Content-Type: application/json" -d '{"name":"test"}' "http://localhost:32000/gateway/api/v1/student/create"
@@ -44,38 +44,38 @@ import (
 // curl -X DELETE "http://localhost:32000/gateway/api/v1/identity/delete?id=cc591981a91c412a9e20be5eec683121"
 
 // Class-Student
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"a38786c698904224a6fc36a23c2eec1e", "studentIds": ["00254b4a7102429db35e6edc8e47a764"]}' "http://localhost:31000/example/api/v1/class/student/update"
-// curl -X GET "http://localhost:31000/example/api/v1/class/student/query?id=a38786c698904224a6fc36a23c2eec1e"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"11d1ecf2795244af89d0b13c606f2396", "studentIds": ["4340e46e439e410fa3b0569e15354da6"]}' "http://localhost:31000/example/api/v1/class/student/update"
+// curl -X GET "http://localhost:31000/example/api/v1/class/student/query?id=11d1ecf2795244af89d0b13c606f2396"
 
 // Student-Class
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"00254b4a7102429db35e6edc8e47a764", "classId": "a38786c698904224a6fc36a23c2eec1e"}' "http://localhost:31000/example/api/v1/student/class/update"
-// curl -X GET "http://localhost:31000/example/api/v1/student/class/query?id=00254b4a7102429db35e6edc8e47a764"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"4340e46e439e410fa3b0569e15354da6", "classId": "11d1ecf2795244af89d0b13c606f2396"}' "http://localhost:31000/example/api/v1/student/class/update"
+// curl -X GET "http://localhost:31000/example/api/v1/student/class/query?id=4340e46e439e410fa3b0569e15354da6"
 // 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":"33d5538ee04843b59db1560b7ab65427", "familyId": "848d175d04e74e64a90cc9ccb4f4fcaf"}' "http://localhost:31000/example/api/v1/student/family/update"
-// curl -X GET "http://localhost:31000/example/api/v1/student/family/query?id=33d5538ee04843b59db1560b7ab65427"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"4340e46e439e410fa3b0569e15354da6", "familyId": "6d15704c1cac42788aa9866cc5d09649"}' "http://localhost:31000/example/api/v1/student/family/update"
+// curl -X GET "http://localhost:31000/example/api/v1/student/family/query?id=4340e46e439e410fa3b0569e15354da6"
 // 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":"848d175d04e74e64a90cc9ccb4f4fcaf", "studentId": "33d5538ee04843b59db1560b7ab65427"}' "http://localhost:31000/example/api/v1/family/student/update"
-// curl -X GET "http://localhost:31000/example/api/v1/family/student/query?id=848d175d04e74e64a90cc9ccb4f4fcaf"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"6d15704c1cac42788aa9866cc5d09649", "studentId": "4340e46e439e410fa3b0569e15354da6"}' "http://localhost:31000/example/api/v1/family/student/update"
+// curl -X GET "http://localhost:31000/example/api/v1/family/student/query?id=6d15704c1cac42788aa9866cc5d09649"
 // 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":"7880acb4f5df40a2b98055d15858f13d", "identityIds": ["58ab7e64e8ea46b5982aedca0d2fa5d0"]}' "http://localhost:31000/example/api/v1/student/identity/update"
-// curl -X GET "http://localhost:31000/example/api/v1/student/identity/query?id=7880acb4f5df40a2b98055d15858f13d"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"4340e46e439e410fa3b0569e15354da6", "identityIds": ["1988069accce47f58679d7a46ce605c3"]}' "http://localhost:31000/example/api/v1/student/identity/update"
+// curl -X GET "http://localhost:31000/example/api/v1/student/identity/query?id=4340e46e439e410fa3b0569e15354da6"
 
 // Identity-Student
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"58ab7e64e8ea46b5982aedca0d2fa5d0", "studentIds": ["7880acb4f5df40a2b98055d15858f13d"]}' "http://localhost:31000/example/api/v1/identity/student/update"
-// curl -X GET "http://localhost:31000/example/api/v1/identity/student/query?id=58ab7e64e8ea46b5982aedca0d2fa5d0"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"1988069accce47f58679d7a46ce605c3", "studentIds": ["4340e46e439e410fa3b0569e15354da6"]}' "http://localhost:31000/example/api/v1/identity/student/update"
+// curl -X GET "http://localhost:31000/example/api/v1/identity/student/query?id=1988069accce47f58679d7a46ce605c3"
 
 // Student-Hobby
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"7880acb4f5df40a2b98055d15858f13d", "hobbyIds": ["42b305bb292c4082a3e91a2967f11111"]}' "http://localhost:31000/example/api/v1/student/hobby/update"
-// curl -X GET "http://localhost:31000/example/api/v1/student/hobby/query?id=7880acb4f5df40a2b98055d15858f13d"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"4340e46e439e410fa3b0569e15354da6", "hobbyIds": ["42b305bb292c4082a3e91a2967f11111"]}' "http://localhost:31000/example/api/v1/student/hobby/update"
+// curl -X GET "http://localhost:31000/example/api/v1/student/hobby/query?id=4340e46e439e410fa3b0569e15354da6"
 
 // Hobby-Student
-// curl -X POST -H "Content-Type: application/json" -d '{"id":"42b305bb292c4082a3e91a2967f11111", "studentIds": ["7880acb4f5df40a2b98055d15858f13d"]}' "http://localhost:31000/example/api/v1/hobby/student/update"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"42b305bb292c4082a3e91a2967f11111", "studentIds": ["4340e46e439e410fa3b0569e15354da6"]}' "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