25 lines
563 B
Go
25 lines
563 B
Go
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)
|
|
}
|