FindAll 获取审核列表
(ctx context.Context, pagination domain.Pagination)
| 46 | |
| 47 | // FindAll 获取审核列表 |
| 48 | func (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 获取审核详情 |
| 57 | func (r *checkRepository) FindByID(ctx context.Context, checkID int64) (domain.Check, error) { |
nothing calls this directly
no test coverage detected