Files
mayfly-go/server/pkg/req/router.go
2026-01-25 14:16:16 +08:00

14 lines
310 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package req
// RouterApi
// 该接口的实现类注册到ioc中则会自动将请求配置注册到路由中
type RouterApi interface {
// ReqConfs 获取请求配置信息
ReqConfs() *Confs
}
// RouterConfig 请求路由配置
type RouterConfig struct {
ContextPath string // 请求路径上下文
}