yjp 1 жил өмнө
parent
commit
a23a706e4a
2 өөрчлөгдсөн 8 нэмэгдсэн , 9 устгасан
  1. 1 2
      go.sum
  2. 7 7
      project/server/main.go

+ 1 - 2
go.sum

@@ -1,5 +1,4 @@
-git.sxidc.com/go-framework/baize v1.0.7-alpha9 h1:Q3Pfl8h2R6FtaXtTcgoO5YnxebDbqTybvGGIP5bEQcI=
-git.sxidc.com/go-framework/baize v1.0.7-alpha9/go.mod h1:dgP7AeYY5PRS3jZHMby7ofPiCfDMBxuNeLRLP7B0iqs=
+git.sxidc.com/go-framework/baize v1.0.8 h1:KLjD1u2l6emjAsTYdZSW2RgoY9n6WnxsbigirdhNsYE=
 git.sxidc.com/go-tools/utils v1.5.23 h1:Kbcj+EafFVssRa6i1jnILi+LddLWMDtyvRzuV26C6fU=
 git.sxidc.com/go-tools/utils v1.5.23/go.mod h1:uTDb6QK5JZzK5+Fzsfeng7TwmnRDZiTY6JLYxIX94Qw=
 git.sxidc.com/service-supports/ds-sdk v0.10.9 h1:KxoGUM+rP30rP81fARPwRMwDSJFaGsk8TjdINGTDIto=

+ 7 - 7
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":"e25bd84b39c241a291c39d73c22e9bfe", "name":"test-new"}' "http://localhost:31000/example/api/v1/class/update"
+// curl -X PUT -H "Content-Type: application/json" -d '{"id":"5590090bf7604fb1b3a3b4b42722d924", "name":""}' "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=2bc2860617584610b0c7a79ed1b45d61"
-// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=e25bd84b39c241a291c39d73c22e9bfe"
+// curl -X GET "http://localhost:31000/example/api/v1/class/get?id=5590090bf7604fb1b3a3b4b42722d924"
+// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=5590090bf7604fb1b3a3b4b42722d924"
 // curl -X GET "http://localhost:31000/example/api/operateLog/query?resource=Class"
 
 // Student
@@ -44,12 +44,12 @@ 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":"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"
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"fa08479ba7b54a3f8f06751fd2726b5d", "studentIds": ["323cb0a706a2470080fcf96268f630ee"]}' "http://localhost:31000/example/api/v1/class/student/update"
+// curl -X GET "http://localhost:31000/example/api/v1/class/student/query?id=fa08479ba7b54a3f8f06751fd2726b5d"
 
 // Student-Class
-// 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 POST -H "Content-Type: application/json" -d '{"id":"323cb0a706a2470080fcf96268f630ee", "classId": "fa08479ba7b54a3f8f06751fd2726b5d"}' "http://localhost:31000/example/api/v1/student/class/update"
+// curl -X GET "http://localhost:31000/example/api/v1/student/class/query?id=323cb0a706a2470080fcf96268f630ee"
 // curl -X GET "http://localhost:31000/example/api/v1/student/class/queryWith?name=test"
 
 // Student-Family