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

Method FindByPostId

internal/repository/check.go:66–72  ·  view source on GitHub ↗

FindByPostId 根据帖子ID获取审核信息

(ctx context.Context, postID uint)

Source from the content-addressed store, hash-verified

64
65// FindByPostId 根据帖子ID获取审核信息
66func (r *checkRepository) FindByPostId(ctx context.Context, postID uint) (domain.Check, error) {
67 check, err := r.dao.FindByPostId(ctx, postID)
68 if err != nil {
69 return domain.Check{}, err
70 }
71 return toDomainCheck(check), nil
72}
73
74// toDAOCheck 将 domain.Check 转换为 dao.Check
75func toDAOCheck(domainCheck domain.Check) dao.Check {

Callers

nothing calls this directly

Calls 2

toDomainCheckFunction · 0.85
FindByPostIdMethod · 0.65

Tested by

no test coverage detected