mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-11 20:43:44 +08:00
v2.0
This commit is contained in:
22
server/internal/logic/hook/init.go
Normal file
22
server/internal/logic/hook/init.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// Package hook
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2022 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
//
|
||||
package hook
|
||||
|
||||
import (
|
||||
"hotgo/internal/service"
|
||||
)
|
||||
|
||||
type sHook struct {
|
||||
}
|
||||
|
||||
func init() {
|
||||
service.RegisterHook(New())
|
||||
}
|
||||
|
||||
func New() *sHook {
|
||||
return &sHook{}
|
||||
}
|
Reference in New Issue
Block a user