use Entry[T]() function to add entry to go-mir

pull/331/head
Michael Li 1 year ago
parent 7b8e6f292f
commit 6662d8e3bc
No known key found for this signature in database

@ -12,19 +12,6 @@ import (
"github.com/rocboss/paopao-ce/internal/model/web"
)
type _binding_ interface {
Bind(*gin.Context) mir.Error
}
type _render_ interface {
Render(*gin.Context)
}
type _default_ interface {
Bind(*gin.Context, any) mir.Error
Render(*gin.Context, any, mir.Error)
}
type Admin interface {
_default_

@ -12,6 +12,19 @@ import (
"github.com/rocboss/paopao-ce/internal/model/web"
)
type _binding_ interface {
Bind(*gin.Context) mir.Error
}
type _render_ interface {
Render(*gin.Context)
}
type _default_ interface {
Bind(*gin.Context, any) mir.Error
Render(*gin.Context, any, mir.Error)
}
type Core interface {
_default_

@ -6,7 +6,7 @@ import (
)
func init() {
AddEntry(new(User))
Entry[User]()
}
type AgentInfo struct {

@ -6,7 +6,7 @@ import (
)
func init() {
AddEntry(new(User))
Entry[User]()
}
type AgentInfo struct {

@ -6,7 +6,7 @@ import (
)
func init() {
AddEntry(new(User))
Entry[User]()
}
type AgentInfo struct {

@ -6,7 +6,7 @@ import (
)
func init() {
AddEntry(new(User))
Entry[User]()
}
type AgentInfo struct {

Loading…
Cancel
Save