接入RESTfull风格接口

This commit is contained in:
hoteas
2021-05-29 02:57:03 +08:00
parent 9fd0a5fd61
commit c46fdd8985
5 changed files with 75 additions and 49 deletions
+9
View File
@@ -0,0 +1,9 @@
package admin
import (
. "../../../hotime"
)
var AdminProj = Proj{
"user": UserCtr,
}
+23
View File
@@ -0,0 +1,23 @@
package admin
import (
. "../../../hotime"
)
var UserCtr = Ctr{
"info": func(this *Context) {
},
"add": func(this *Context) {
},
"update": func(this *Context) {
},
"remove": func(this *Context) {
},
"search": func(this *Context) {
},
}