yjp 1 жил өмнө
parent
commit
5c0be0dbf7
3 өөрчлөгдсөн 6 нэмэгдсэн , 6 устгасан
  1. 1 1
      go.mod
  2. 2 2
      go.sum
  3. 3 3
      project/server_ds/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.11.23
+	git.sxidc.com/go-framework/baize v0.11.36
 	git.sxidc.com/go-tools/utils v1.5.23
 	git.sxidc.com/service-supports/fslog v0.5.9
 	git.sxidc.com/service-supports/scm-sdk v0.1.0

+ 2 - 2
go.sum

@@ -1,5 +1,5 @@
-git.sxidc.com/go-framework/baize v0.11.23 h1:ZSTNTLviwWHob6ovbHkm4iwBU/t3zxwh6hcnLTtgRmE=
-git.sxidc.com/go-framework/baize v0.11.23/go.mod h1:NrSdxbD+c0mOCPhH+xOGVZsDAxO2cEQhPYQwXfNF61k=
+git.sxidc.com/go-framework/baize v0.11.36 h1:cI6PjWa0q3+EQcfsqlD0o15Dfo6HY9e6R5GnscrejRI=
+git.sxidc.com/go-framework/baize v0.11.36/go.mod h1:NrSdxbD+c0mOCPhH+xOGVZsDAxO2cEQhPYQwXfNF61k=
 git.sxidc.com/go-tools/api_binding v1.3.23 h1:vgCdYq09aiw7Vs9JeOR0OZLOjezbHugQ/3ABeakvD4g=
 git.sxidc.com/go-tools/api_binding v1.3.23/go.mod h1:SmUnRrMtODonLzWmWCGQN9uAB2TjH8g5yEKFnp4rEgU=
 git.sxidc.com/go-tools/utils v1.5.23 h1:Kbcj+EafFVssRa6i1jnILi+LddLWMDtyvRzuV26C6fU=

+ 3 - 3
project/server_ds/main.go

@@ -16,10 +16,10 @@ import (
 
 // Class
 // curl -X POST -H "Content-Type: application/json" -d '{"name":"test", "studentNum": 10}' "http://localhost:31000/example/api/v1/class/create"
-// curl -X PUT -H "Content-Type: application/json" -d '{"id":"da0058447ca4400195c3f46394151354", "name":"test-new"}' "http://localhost:31000/example/api/v1/class/update"
+// curl -X PUT -H "Content-Type: application/json" -d '{"id":"2639839b3c224a00922472bf28e86b9a", "name":"test-new"}' "http://localhost:31000/example/api/v1/class/update"
 // curl -X GET "http://localhost:31000/example/api/v1/class/query?name=test-new&pageNo=1&pageSize=1"
-// curl -X GET "http://localhost:31000/example/api/v1/class/get?id=da0058447ca4400195c3f46394151354"
-// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=da0058447ca4400195c3f46394151354"
+// curl -X GET "http://localhost:31000/example/api/v1/class/get?id=2639839b3c224a00922472bf28e86b9a"
+// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=2639839b3c224a00922472bf28e86b9a"
 // curl -X GET "http://localhost:31000/example/api/operateLog/query?resource=Class"
 
 // Student