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

Method FindByID

internal/repository/check.go:57–63  ·  view source on GitHub ↗

FindByID 获取审核详情

(ctx context.Context, checkID int64)

Source from the content-addressed store, hash-verified

55
56// FindByID 获取审核详情
57func (r *checkRepository) FindByID(ctx context.Context, checkID int64) (domain.Check, error) {
58 check, err := r.dao.FindByID(ctx, checkID)
59 if err != nil {
60 return domain.Check{}, err
61 }
62 return toDomainCheck(check), nil
63}
64
65// FindByPostId 根据帖子ID获取审核信息
66func (r *checkRepository) FindByPostId(ctx context.Context, postID uint) (domain.Check, error) {

Callers

nothing calls this directly

Calls 2

toDomainCheckFunction · 0.85
FindByIDMethod · 0.65

Tested by

no test coverage detected