重命名 api 文件夹为 backend
This commit is contained in:
17
backend/api/handlers/handler.go
Normal file
17
backend/api/handlers/handler.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"api/config"
|
||||
)
|
||||
|
||||
// Handler 处理器
|
||||
type Handler struct {
|
||||
cfg *config.Config
|
||||
}
|
||||
|
||||
// New 创建处理器实例
|
||||
func New(cfg *config.Config) *Handler {
|
||||
return &Handler{
|
||||
cfg: cfg,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user