ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package jnpf.base.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import jnpf.base.entity.InterfaceOauthEntity;
import jnpf.base.mapper.InterfaceOauthMapper;
import jnpf.base.model.InterfaceOauth.PaginationOauth;
import jnpf.base.service.InterfaceOauthService;
import jnpf.base.service.SuperServiceImpl;
import jnpf.exception.DataException;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * 接口认证服务
 *
 * @author JNPF开发平台组
 * @version V3.4.2
 * @copyright 引迈信息技术有限公司
 * @date 2022/6/8 9:50
 */
@Service
public class InterfaceOauthServiceImpl extends SuperServiceImpl<InterfaceOauthMapper, InterfaceOauthEntity> implements InterfaceOauthService {
 
    @Override
    public boolean isExistByAppName(String appName, String id) {
        return this.baseMapper.isExistByAppName(appName, id);
    }
 
    @Override
    public boolean isExistByAppId(String appId, String id) {
        return this.baseMapper.isExistByAppId(appId, id);
    }
 
    @Override
    public List<InterfaceOauthEntity> getList(PaginationOauth pagination) {
        return this.baseMapper.getList(pagination);
    }
 
    @Override
    public InterfaceOauthEntity getInfo(String id) {
        QueryWrapper<InterfaceOauthEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(InterfaceOauthEntity::getId, id);
        return this.getOne(queryWrapper);
    }
 
    @Override
    public void create(InterfaceOauthEntity entity) {
        this.baseMapper.create(entity);
    }
 
    @Override
    public boolean update(InterfaceOauthEntity entity, String id) throws DataException {
        return this.baseMapper.update(entity, id);
    }
 
    @Override
    public void delete(InterfaceOauthEntity entity) {
        this.baseMapper.delete(entity);
    }
 
    @Override
    public InterfaceOauthEntity getInfoByAppId(String appId) {
        return this.baseMapper.getInfoByAppId(appId);
    }
}