package cn.edu.whu.boot.allocation.services.impl;

import cn.edu.whu.boot.allocation.entities.Draft;
import cn.edu.whu.boot.allocation.mapper.DraftMapper;
import cn.edu.whu.boot.allocation.services.DraftService;
import org.springframework.stereotype.Service;

@Service
public class DraftServiceImpl implements DraftService {

    private final DraftMapper draftMapper;

    public DraftServiceImpl(DraftMapper draftMapper) {
        this.draftMapper = draftMapper;
    }

    @Override
    public int insert(String databaseName, Draft draft) {
        return draftMapper.insert(databaseName, draft);
    }
}
