[feat] Service 服务支持
This commit is contained in:
parent
c0df8cbaff
commit
c81730e740
10
server.go
Normal file
10
server.go
Normal file
@ -0,0 +1,10 @@
|
||||
package contracts
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type Server interface {
|
||||
Execute(*http.Request) any
|
||||
ServeHTTP(http.ResponseWriter, *http.Request)
|
||||
}
|
10
service.go
10
service.go
@ -1,10 +1,6 @@
|
||||
package contracts
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type Service interface {
|
||||
Execute(*http.Request) any
|
||||
ServeHTTP(http.ResponseWriter, *http.Request)
|
||||
}
|
||||
GetResListener(code string) ResListener
|
||||
GetControllerr(code string) Controller
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user