yjp 1 år sedan
förälder
incheckning
d9f1ffea48
3 ändrade filer med 9 tillägg och 9 borttagningar
  1. 6 6
      examples/examples/project/main.go
  2. 1 1
      go.mod
  3. 2 2
      go.sum

+ 6 - 6
examples/examples/project/main.go

@@ -10,16 +10,16 @@ import (
 // curl -X GET "http://localhost:31000/example/version"
 
 // Configuration
-// curl -X POST -H "Content-Type: application/json" -d '{"scope": "global", "group":"test", "value":"test-value"}' "http://localhost:31000/example/v1/configuration/create"
-// curl -X GET "http://localhost:31000/example/v1/configuration/values?scope=global&group=test&pageNo=1&pageSize=1"
-// curl -X POST -H "Content-Type: application/json" -d '{"scope": "global", "group":"test"}' "http://localhost:31000/example/v1/configuration/delete"
+// curl -X POST -H "Content-Type: application/json" -d '{"scope": "global", "group":"test", "value":"test-value"}' "http://localhost:31000/example/configuration/create"
+// curl -X GET "http://localhost:31000/example/configuration/values?scope=global&group=test&pageNo=1&pageSize=1"
+// curl -X POST -H "Content-Type: application/json" -d '{"scope": "global", "group":"test"}' "http://localhost:31000/example/configuration/delete"
 
 // Class
 // curl -X POST -H "Content-Type: application/json" -d '{"name":"test", "studentNum": 10}' "http://localhost:31000/example/v1/class/create"
-// curl -X PUT -H "Content-Type: application/json" -d '{"id":"3ca731da91cc42c9b9f413c1b493133d", "name":"test-new"}' "http://localhost:31000/example/v1/class/update"
+// curl -X PUT -H "Content-Type: application/json" -d '{"id":"ed3f9cffdcfe4984ac72425b447b7ce6", "name":"test-new"}' "http://localhost:31000/example/v1/class/update"
 // curl -X GET "http://localhost:31000/example/v1/class/query?name=test-new&pageNo=1&pageSize=1"
-// curl -X GET "http://localhost:31000/example/v1/class/get?id=3ca731da91cc42c9b9f413c1b493133d"
-// curl -X DELETE "http://localhost:31000/example/v1/class/3ca731da91cc42c9b9f413c1b493133d/delete"
+// curl -X GET "http://localhost:31000/example/v1/class/get?id=ed3f9cffdcfe4984ac72425b447b7ce6"
+// curl -X DELETE "http://localhost:31000/example/v1/class/ed3f9cffdcfe4984ac72425b447b7ce6/delete"
 
 // Student
 // curl -X POST -H "Content-Type: application/json" -d '{"name":"test"}' "http://localhost:31000/example/v1/student/create"

+ 1 - 1
go.mod

@@ -3,7 +3,7 @@ module git.sxidc.com/go-framework/baize
 go 1.22.3
 
 require (
-	git.sxidc.com/go-tools/utils v1.5.13
+	git.sxidc.com/go-tools/utils v1.5.14
 	git.sxidc.com/service-supports/fserr v0.3.5
 	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-tools/utils v1.5.13 h1:pqFzOlCjVyxVT8ebzFQ9+aZw6Ef87Ur/Hhr4cEAqyKw=
-git.sxidc.com/go-tools/utils v1.5.13/go.mod h1:fkobAXFpOMTvkZ82TQXWcpsayePcyk/MS5TN6GTlRDg=
+git.sxidc.com/go-tools/utils v1.5.14 h1:HVYw1wx4BBrh9acQJQ+B4Qb2ejKjFVGslcCnAmSVOsg=
+git.sxidc.com/go-tools/utils v1.5.14/go.mod h1:fkobAXFpOMTvkZ82TQXWcpsayePcyk/MS5TN6GTlRDg=
 git.sxidc.com/service-supports/fserr v0.3.5 h1:1SDC60r3FIDd2iRq/oHRLK4OMa1gf67h9B7kierKTUE=
 git.sxidc.com/service-supports/fserr v0.3.5/go.mod h1:8U+W/ulZIGVPFojV6cE18shkGXqvaICuzaxIJpOcBqI=
 git.sxidc.com/service-supports/fslog v0.5.9 h1:q2XIK2o/fk/qmByy4x5kKLC+k7kolT5LrXHcWRSffXQ=