Create 创建审核记录
(ctx context.Context, check domain.Check)
| 30 | |
| 31 | // Create 创建审核记录 |
| 32 | func (r *checkRepository) Create(ctx context.Context, check domain.Check) (int64, error) { |
| 33 | // 创建新的审核信息 |
| 34 | id, err := r.dao.Create(ctx, toDAOCheck(check)) |
| 35 | if err != nil { |
| 36 | return -1, err |
| 37 | } |
| 38 | |
| 39 | return id, nil |
| 40 | } |
| 41 | |
| 42 | // UpdateStatus 更新审核状态 |
| 43 | func (r *checkRepository) UpdateStatus(ctx context.Context, check domain.Check) error { |
nothing calls this directly
no test coverage detected