(req dto.AgentAccountModelReq)
| 1124 | } |
| 1125 | |
| 1126 | func (a AgentService) GetAccountModels(req dto.AgentAccountModelReq) ([]dto.AgentAccountModel, error) { |
| 1127 | account, err := agentAccountRepo.GetFirst(repo.WithByID(req.AccountID)) |
| 1128 | if err != nil { |
| 1129 | return nil, err |
| 1130 | } |
| 1131 | return loadAgentAccountModels(account) |
| 1132 | } |
| 1133 | |
| 1134 | func (a AgentService) CreateAccountModel(req dto.AgentAccountModelCreateReq) error { |
| 1135 | account, err := agentAccountRepo.GetFirst(repo.WithByID(req.AccountID)) |
nothing calls this directly
no test coverage detected