/*
* Copyright (c) 京北方信息技术股份有限公司 Corporation 2022 . All rights reserved.
*
*/
package net.northking.cctp.platform.db.impl;

import net.northking.cctp.platform.db.dao.CpComponentLibraryDao;
import net.northking.cctp.platform.db.entity.CpComponentList;
import net.northking.cctp.platform.db.service.CpComponentLibraryService;
import net.northking.cctp.platform.db.entity.CpComponentLibrary;

import net.northking.cctp.common.db.BasicDao;
import net.northking.cctp.common.saas.db.TenantEntityService;

import net.northking.cctp.platform.dto.comlibrary.CpComLibraryTree;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 平台组件库
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2022-08-29 10:24:48  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "CpComponentLibraryServiceImpl")
public class CpComponentLibraryServiceImpl extends TenantEntityService<CpComponentLibrary> implements CpComponentLibraryService
{
private static final Logger logger = LoggerFactory.getLogger(CpComponentLibraryServiceImpl.class);

  private final CpComponentLibraryDao cpComponentLibraryDao;

  public CpComponentLibraryServiceImpl(CpComponentLibraryDao cpComponentLibraryDao) {this.cpComponentLibraryDao = cpComponentLibraryDao;}

  public BasicDao<CpComponentLibrary> getDao() {return cpComponentLibraryDao;}

  public CpComponentLibrary createEntity() { return new CpComponentLibrary();}

  @Override
  public List<CpComLibraryTree> queryLibraryListTree(CpComponentLibrary libQuery) {
    return cpComponentLibraryDao.queryLibraryListTree(libQuery);
  }

  @Override
  public List<CpComponentLibrary> queryRecordList(CpComponentList entity) {
    return cpComponentLibraryDao.queryRecordList(entity);
  }

  @Override
  public List<CpComponentLibrary> queryLibListByNames(List<String> names) {
    return cpComponentLibraryDao.queryLibListByNames(names);
  }

}

