This commit is contained in:
2025-04-14 15:28:51 +08:00
parent f100427f8b
commit 371b89ee8d
93 changed files with 3757 additions and 1038 deletions

View File

@@ -0,0 +1,29 @@
package system
import (
"context"
"management/internal/db/model/dto"
"management/internal/erpserver/model/system"
v1 "management/internal/erpserver/service/v1"
)
type auditLogService struct {
repo system.AuditLogRepository
}
var _ v1.AuditLogService = (*auditLogService)(nil)
func NewAuditLogService(repo system.AuditLogRepository) *auditLogService {
return &auditLogService{
repo: repo,
}
}
func (b *auditLogService) Create(ctx context.Context, req *system.AuditLog) error {
return b.repo.Create(ctx, req)
}
func (b *auditLogService) List(ctx context.Context, q dto.SearchDto) ([]*system.AuditLog, int64, error) {
return b.repo.List(ctx, q)
}