|
|
@@ -2,8 +2,9 @@ package main
|
|
|
|
|
|
import (
|
|
|
"baize-demo/project/server/application"
|
|
|
- DEATH "github.com/vrecan/death"
|
|
|
"syscall"
|
|
|
+
|
|
|
+ DEATH "github.com/vrecan/death"
|
|
|
)
|
|
|
|
|
|
// Version
|
|
|
@@ -16,10 +17,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":"5590090bf7604fb1b3a3b4b42722d924", "name":""}' "http://localhost:31000/example/api/v1/class/update"
|
|
|
+// curl -X PUT -H "Content-Type: application/json" -d '{"id":"8f298059e2bb40d5a117515e6d0f3d8a", "name":"test1", "studentNum":30}' "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=5590090bf7604fb1b3a3b4b42722d924"
|
|
|
-// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=5590090bf7604fb1b3a3b4b42722d924"
|
|
|
+// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=8f298059e2bb40d5a117515e6d0f3d8a"
|
|
|
// curl -X GET "http://localhost:31000/example/api/operateLog/query?resource=Class"
|
|
|
|
|
|
// Student
|