FindByID 获取审核详情
(ctx context.Context, checkID int64)
| 55 | |
| 56 | // FindByID 获取审核详情 |
| 57 | func (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获取审核信息 |
| 66 | func (r *checkRepository) FindByPostId(ctx context.Context, postID uint) (domain.Check, error) { |
nothing calls this directly
no test coverage detected