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

import lombok.RequiredArgsConstructor;

import org.springframework.stereotype.Service;

import top.continew.starter.extension.crud.service.BaseServiceImpl;
import com.pavis.admin.aigc.mapper.ToolMapper;
import com.pavis.admin.aigc.model.entity.ToolDO;
import com.pavis.admin.aigc.model.query.ToolQuery;
import com.pavis.admin.aigc.model.req.ToolReq;
import com.pavis.admin.aigc.model.resp.ToolDetailResp;
import com.pavis.admin.aigc.model.resp.ToolResp;
import com.pavis.admin.aigc.service.ToolService;

import java.util.List;

/**
 * 工具业务实现
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Service
@RequiredArgsConstructor
public class ToolServiceImpl extends BaseServiceImpl<ToolMapper, ToolDO, ToolResp, ToolDetailResp, ToolQuery, ToolReq> implements ToolService {
    @Override
    public List<ToolDO> getAll() {
        return this.list();
    }

    @Override
    public List<ToolDO> selectByAgentId(Long agentId) {
        return baseMapper.selectByAgentId(agentId);
    }
}