(ctx context.Context, name string, workflowID uuid.UUID)
| 43 | } |
| 44 | |
| 45 | func (r *RobotAccountRepo) Create(ctx context.Context, name string, workflowID uuid.UUID) (*biz.RobotAccount, error) { |
| 46 | ctx, span := otelx.Start(ctx, robotAccountRepoTracer, "RobotAccountRepo.Create") |
| 47 | defer span.End() |
| 48 | |
| 49 | p, err := r.data.DB.RobotAccount.Create().SetName(name).SetWorkflowID(workflowID).Save(ctx) |
| 50 | if err != nil { |
| 51 | return nil, err |
| 52 | } |
| 53 | |
| 54 | return entRaToBizRa(p, workflowID), nil |
| 55 | } |
| 56 | |
| 57 | func (r *RobotAccountRepo) List(ctx context.Context, workflowID uuid.UUID, includeRevoked bool) ([]*biz.RobotAccount, error) { |
| 58 | ctx, span := otelx.Start(ctx, robotAccountRepoTracer, "RobotAccountRepo.List") |
nothing calls this directly
no test coverage detected