[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)
|
||||||
|
}
|
@ -1,10 +1,6 @@
|
|||||||
package contracts
|
package contracts
|
||||||
|
|
||||||
import (
|
|
||||||
"net/http"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Service interface {
|
type Service interface {
|
||||||
Execute(*http.Request) any
|
GetResListener(code string) ResListener
|
||||||
ServeHTTP(http.ResponseWriter, *http.Request)
|
GetControllerr(code string) Controller
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user