FindByPostId 根据帖子ID获取审核信息
(ctx context.Context, postID uint)
| 64 | |
| 65 | // FindByPostId 根据帖子ID获取审核信息 |
| 66 | func (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 |
| 75 | func toDAOCheck(domainCheck domain.Check) dao.Check { |
nothing calls this directly
no test coverage detected