2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

feat: 数据库同步及fail2ban重构

This commit is contained in:
耗子
2024-11-22 22:46:26 +08:00
parent e1f074f116
commit 214b804062
38 changed files with 287 additions and 230 deletions

View File

@@ -3,20 +3,18 @@ package data
import (
"fmt"
"github.com/samber/do/v2"
"github.com/TheTNB/panel/internal/app"
"github.com/TheTNB/panel/internal/biz"
"github.com/TheTNB/panel/internal/http/request"
pkgssh "github.com/TheTNB/panel/pkg/ssh"
)
type sshRepo struct {
settingRepo biz.SettingRepo
}
type sshRepo struct{}
func NewSSHRepo() biz.SSHRepo {
return &sshRepo{
settingRepo: NewSettingRepo(),
}
return do.MustInvoke[biz.SSHRepo](injector)
}
func (r *sshRepo) List(page, limit uint) ([]*biz.SSH, int64, error) {