package com.dk.mdm.mapper.mst;

import com.dk.mdm.model.pojo.mst.MenuFrequency;
import com.dk.common.mapper.BaseMapper;
import com.dk.mdm.model.query.mst.MenuFrequencyQuery;
import com.dk.mdm.model.response.mst.MenuFrequencyResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*  用户功能频率 Mapper
*/
@Repository
public interface MenuFrequencyMapper extends BaseMapper<MenuFrequency>{
    /**
     * @desc   : 保存用户频率表
     * @author : 周兴
     * @date   : 2024-03-28 10:30
     */
    int save(MenuFrequency menuFrequency);

    /**
     * @desc   : 查询功能频率
     * @author : 周兴
     * @date   : 2024-03-28 10:30
     */
    List<MenuFrequencyResponse> selectByCond(MenuFrequencyQuery menuFrequencyQuery);

    /**
     * @desc   : 查询功能频率
     * @author : 周兴
     * @date   : 2024-03-28 10:30
     */
    MenuFrequencyResponse selectMenuById(MenuFrequency menuFrequency);
}

