MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / FindAll

Method FindAll

internal/repository/check.go:48–54  ·  view source on GitHub ↗

FindAll 获取审核列表

(ctx context.Context, pagination domain.Pagination)

Source from the content-addressed store, hash-verified

46
47// FindAll 获取审核列表
48func (r *checkRepository) FindAll(ctx context.Context, pagination domain.Pagination) ([]domain.Check, error) {
49 checks, err := r.dao.FindAll(ctx, pagination)
50 if err != nil {
51 return nil, err
52 }
53 return toDomainChecks(checks), nil
54}
55
56// FindByID 获取审核详情
57func (r *checkRepository) FindByID(ctx context.Context, checkID int64) (domain.Check, error) {

Callers

nothing calls this directly

Calls 2

toDomainChecksFunction · 0.85
FindAllMethod · 0.65

Tested by

no test coverage detected