package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.bean.vo.appstore.AppConfigVO;
import com.skr.mdm.entity.AppConfigDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AppConfigDao extends BaseMapper<AppConfigDO> {

    /**
     * 根据公司ID删除
     * @param companyId 公司ID
     */
    void deleteByCompanyId(@Param("companyId") Integer companyId);

    List<AppConfigVO> listAppConfigVO(@Param("companyId") Integer companyId,
                                      @Param("searchType") Integer searchType,
                                      @Param("searchValue") String searchValue);
}