Browse Source

修改bug

yjp 1 year ago
parent
commit
437acd0bc0
3 changed files with 6 additions and 6 deletions
  1. 1 1
      go.mod
  2. 2 2
      go.sum
  3. 3 3
      project/server/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.12
+	git.sxidc.com/go-framework/baize v0.11.19
 	git.sxidc.com/go-tools/utils v1.5.15
 	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.11 h1:r8opBwcTm+hHCW7uQGehhfGveaelccb46vuHHSKAT08=
-git.sxidc.com/go-framework/baize v0.11.11/go.mod h1:xE4XwsvwSO8tR5j8BaVZUTngU+HLNICHwdl5x1LULa0=
+git.sxidc.com/go-framework/baize v0.11.19 h1:qeSh8jkO4yQEX97U/4qnhm7Tszk9DVhMwr4Si/xRfBU=
+git.sxidc.com/go-framework/baize v0.11.19/go.mod h1:xE4XwsvwSO8tR5j8BaVZUTngU+HLNICHwdl5x1LULa0=
 git.sxidc.com/go-tools/utils v1.5.15 h1:7xs/EM8XZyKycrSSHcPZ6wvyYs+v8uWQ7ZmPP/fHyFI=
 git.sxidc.com/go-tools/utils v1.5.15/go.mod h1:fkobAXFpOMTvkZ82TQXWcpsayePcyk/MS5TN6GTlRDg=
 git.sxidc.com/service-supports/fslog v0.5.9 h1:q2XIK2o/fk/qmByy4x5kKLC+k7kolT5LrXHcWRSffXQ=

+ 3 - 3
project/server/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":"2a20e30977f84fc9a9cd198523c4f4b8", "name":"test-new"}' "http://localhost:31000/example/api/v1/class/update"
+// curl -X PUT -H "Content-Type: application/json" -d '{"id":"e25bd84b39c241a291c39d73c22e9bfe", "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=2a20e30977f84fc9a9cd198523c4f4b8"
-// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=2a20e30977f84fc9a9cd198523c4f4b8"
+// curl -X GET "http://localhost:31000/example/api/v1/class/get?id=2bc2860617584610b0c7a79ed1b45d61"
+// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=e25bd84b39c241a291c39d73c22e9bfe"
 
 // Student
 // curl -X POST -H "Content-Type: application/json" -d '{"name":"test"}' "http://localhost:31000/example/api/v1/student/create"