/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.lightinit.hsdatagateway.modules.gateway.dao;

import com.lightinit.hsdatagateway.common.persistence.CrudDao;
import com.lightinit.hsdatagateway.common.persistence.annotation.MyBatisDao;
import com.lightinit.hsdatagateway.modules.gateway.entity.BizSign;

import java.util.List;

/**
 * 签名管理DAO接口
 * @Author yangrui
 * @version 2019-03-05
 */
@MyBatisDao
public interface BizSignDao extends CrudDao<BizSign> {

    /**
     * 根据应用id和用户id查询
     * @param bizSign
     * @return
     */
    BizSign getByAppIdAndUserId(BizSign bizSign);

    /**
     * 根据id修改签名信息
     * @param bizSign
     */
    void updateById(BizSign bizSign);

    /**
     * api接口 查询签名信息
     * @param bizSign
     * @return
     */
    List<BizSign> findListByApi(BizSign bizSign);
}