package com.laoxie.auto.service.demo;

import com.laoxie.auto.dal.dataobject.demo.DemoDO;
import com.laoxie.auto.dal.mysql.demo.DemoMapper;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
@Validated
public class DemoServiceImpl implements DemoService{

    @Resource
    private DemoMapper demoMapper;

    @Override
    public void updateAuditStatus(long l, Integer status) {
        demoMapper.updateById(new DemoDO());
    }

    @Override
    public List<DemoDO> list() {
        return Collections.emptyList();
    }

    @Override
    public DemoDO getDemoById(long l) {
        return demoMapper.selectById(l);
    }
}
