package com.ruoyi.generator.service.front;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.ruoyi.generator.domain.front.FrontProjectGeneration;
import com.ruoyi.generator.mapper.front.FrontProjectGenerationMapper;

@Service
public class AiGenerationRecordService
{
    @Autowired
    private FrontProjectGenerationMapper frontProjectGenerationMapper;

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public void insert(FrontProjectGeneration generation)
    {
        frontProjectGenerationMapper.insertFrontProjectGeneration(generation);
    }
}
