(req dto.AgentIDReq)
| 797 | } |
| 798 | |
| 799 | func (a AgentService) DeleteCheck(req dto.AgentIDReq) ([]dto.AppResource, error) { |
| 800 | agent, err := agentRepo.GetFirst(repo.WithByID(req.AgentID)) |
| 801 | if err != nil { |
| 802 | return nil, err |
| 803 | } |
| 804 | return a.deleteCheckByAgent(agent) |
| 805 | } |
| 806 | |
| 807 | func (a AgentService) deleteCheckByAgent(agent *model.Agent) ([]dto.AppResource, error) { |
| 808 | if agent == nil || agent.WebsiteID == 0 { |
nothing calls this directly
no test coverage detected