feat: 升级 samber/do v1 → v2
This commit is contained in:
+8
-3
@@ -1,9 +1,14 @@
|
||||
package contracts
|
||||
|
||||
import "git.fsdpf.net/go/req"
|
||||
import (
|
||||
"git.fsdpf.net/go/req"
|
||||
)
|
||||
|
||||
// 资源
|
||||
// GetResource 资源
|
||||
type GetResource func(code string) (req.Resource, bool)
|
||||
|
||||
// 获取用户
|
||||
// MustResource 资源, 没有则抛出错误
|
||||
type MustResource func(code string) req.Resource
|
||||
|
||||
// GetUser 获取用户
|
||||
type GetUser func(uuid string, options ...req.UserRuntimeOption) (req.User, error)
|
||||
|
||||
Reference in New Issue
Block a user