package com.goldenwater.hzz.service;
import com.goldenwater.hzz.domain.AdInfoDTO;
import com.goldenwater.hzz.mapper.AdTreeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class AdTreeService {
    @Autowired private AdTreeMapper mapper;
    public List<AdInfoDTO> getChildren(String adCode) { return mapper.getChildren(adCode); }
    public AdInfoDTO getByCode(String adCode) { return mapper.getByCode(adCode); }
}
