Commit e46dab0f403b3c703fe7aae98a9b19ca92099533
1 parent
211d88ce
ApiMetricsDao
Showing
1 changed file
with
30 additions
and
0 deletions
gateway-core/src/main/java/com/diligrp/xtrade/core/repository/dao/ApiMetricsDao.java
0 → 100644
1 | +package com.diligrp.xtrade.core.repository.dao; | |
2 | + | |
3 | +import com.diligrp.xtrade.core.repository.entity.ApiMetricsInfoEntity; | |
4 | +import org.apache.ibatis.annotations.Param; | |
5 | +import java.util.List; | |
6 | + | |
7 | +/** | |
8 | + * api请求指标记录表(ApiMetrics)表数据库访问层 | |
9 | + * | |
10 | + * @author miaoguoxin | |
11 | + * @since 2020-04-20 12:01:17 | |
12 | + */ | |
13 | +public interface ApiMetricsDao { | |
14 | + | |
15 | + /** | |
16 | + * 通过ID查询单条数据 | |
17 | + * | |
18 | + * @param id 主键 | |
19 | + * @return 实例对象 | |
20 | + */ | |
21 | + ApiMetricsInfoEntity queryById(Long id); | |
22 | + | |
23 | + /** | |
24 | + * 新增数据 | |
25 | + * | |
26 | + * @param apiMetricsList 实例对象 | |
27 | + * @return 影响行数 | |
28 | + */ | |
29 | + int insertBatch(List<ApiMetricsInfoEntity> apiMetricsList); | |
30 | +} | ... | ... |