feat(admin): 用户管理增强 - CSV 批量导入用户、批量状态/组操作、登录审计日志
Build and Deploy / build-and-deploy (push) Canceled after 0s

This commit is contained in:
2026-09-13 12:09:55 +08:00
parent 32959c7330
commit 62e2250202
10 changed files with 884 additions and 0 deletions
+11
View File
@@ -106,6 +106,8 @@ type Dep interface {
ShareClient() inventory.ShareClient
// TaskClient Creates a new inventory.TaskClient instance for access DB task store.
TaskClient() inventory.TaskClient
// LoginAuditClient Creates a new inventory.LoginAuditClient instance for access DB login audit store.
LoginAuditClient() inventory.LoginAuditClient
// ForkWithLogger create a shallow copy of dependency with a new correlated logger, used as per-request dep.
ForkWithLogger(ctx context.Context, l logging.Logger) context.Context
// MediaMetaQueue Get a singleton queue.Queue instance for media metadata processing.
@@ -170,6 +172,7 @@ type dependency struct {
directLinkClient inventory.DirectLinkClient
fsEventClient inventory.FsEventClient
oAuthClient inventory.OAuthClientClient
loginAuditClient inventory.LoginAuditClient
emailClient email.Driver
generalAuth auth.Auth
hashidEncoder hashid.Encoder
@@ -820,6 +823,14 @@ func (d *dependency) TaskClient() inventory.TaskClient {
return inventory.NewTaskClient(d.DBClient(), d.ConfigProvider().Database().Type, d.HashIDEncoder())
}
func (d *dependency) LoginAuditClient() inventory.LoginAuditClient {
if d.loginAuditClient != nil {
return d.loginAuditClient
}
return inventory.NewLoginAuditClient(d.DBClient())
}
func (d *dependency) DavAccountClient() inventory.DavAccountClient {
if d.davAccountClient != nil {
return d.davAccountClient