package com.pavis.admin.aigc.service.impl;

import com.pavis.admin.aigc.mapper.AgentMapper;
import com.pavis.admin.aigc.model.entity.AgentDO;
import com.pavis.admin.aigc.model.query.AgentQuery;
import com.pavis.admin.aigc.model.req.AgentReq;
import com.pavis.admin.aigc.model.resp.AgentDetailResp;
import com.pavis.admin.aigc.model.resp.AgentResp;
import com.pavis.admin.aigc.service.AgentService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import top.continew.starter.extension.crud.service.BaseServiceImpl;

import java.util.List;

/**
 * 智能体业务实现
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Service
@RequiredArgsConstructor
public class AgentServiceImpl extends BaseServiceImpl<AgentMapper, AgentDO, AgentResp, AgentDetailResp, AgentQuery, AgentReq> implements AgentService {
    @Override
    public AgentResp getByCode(String agentCode) {
        return baseMapper.selectByCode(agentCode);
    }

    @Override
    public List<AgentResp> getAll() {
        return baseMapper.selectAgentList();
    }
}