feat: 升级 samber/do v1 → v2

This commit is contained in:
2026-05-15 09:04:12 +08:00
parent 7741f7584d
commit 9ad5d25836
47 changed files with 1456 additions and 684 deletions
+8 -3
View File
@@ -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)