ApiDao.java 1.8 KB
package com.zteits.pay.dao;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.zteits.clouds.api.apibase.bean.PageBean;
import com.zteits.clouds.api.dto.pay.ApiListDTO;
import com.zteits.clouds.api.dto.pay.TdBApiDTO;
import com.zteits.clouds.api.dto.pay.param.ApiLogRequest;
import com.zteits.pay.domain.TdBApiLog;
import com.zteits.pay.domain.TdBApiLogName;

/**
 * 
 * 
 * Copyright: Copyright (c) 2017  ZTE-ITS
 * 
 * @ClassName: AppVersionDao.java
 * @Description: 
 * @version: v1.0.0
 * @author: wangbiao
 * @date: 2017年7月17日   下午5:23:15 
 * Modification History:
 * Date             Author          Version            Description
 *---------------------------------------------------------*
 * 2017年7月17日      wangbiao           v1.0.0               创建
 */
public interface ApiDao {
	
	/**
	 * 
	* @Title: insertApiLog 
	* @Description: 插入接口日志
	* @param @param appType
	* @param @return    设定文件 
	* @return Integer    返回类型 
	* @throws
	 */
	Integer insertApiLog(TdBApiLog record);
	
	/**
	 * 根据appType查询总接口数量
	 * @param appType
	 * @return
	 */
	Integer queryApiCount(Integer appType);
	
	/**
	 * 根据appType当日活跃接口数量
	 * @param appType
	 * @return
	 */
	Integer queryApiHYCount(Integer appType);
	
	/**
	 * 根据appType当日活跃接口排行榜
	 * @param appType
	 * @return
	 */
	List<ApiListDTO> queryApiRankingList(Integer appType);
	/**
	 * 
	* @Title: queryApiList 
	* @Description: 查询api列表
	* @param @param apiType
	* @param @return    设定文件 
	* @return BizResult<List<TdBApiDTO>>    返回类型 
	* @throws
	 */
	List<TdBApiDTO> queryApiList(Integer apiType);

	/**
	 * 分页查询接口调用日志
	 * @return
	 */
	PageInfo<TdBApiLogName> queryApiLogForPageBean(ApiLogRequest request);
}