finclip-app-manager/domain/service/link_audit.go

25 lines
563 B
Go
Raw Normal View History

2023-10-31 14:07:26 +08:00
package service
import (
"context"
impl "finclip-app-manager/infrastructure/db/repo"
)
type LinkAuditService struct {
}
func NewLinkAuditService() *LinkAuditService {
var s LinkAuditService
return &s
}
func (s LinkAuditService) Count(ctx context.Context, appID string, groupId string, bindingID string, stLinkAudit string) (int, error) {
repo := impl.InitLinkAuditRepo()
return repo.Count(ctx, appID, groupId, bindingID, stLinkAudit)
}
func (s LinkAuditService) NotFound(err error) bool {
repo := impl.InitLinkAuditRepo()
return repo.NotFound(err)
}