| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- package jnpf.base.service;
- import jnpf.base.service.SuperService;
- import com.baomidou.mybatisplus.extension.service.IService;
- import jnpf.base.entity.InterfaceOauthEntity;
- import jnpf.base.model.InterfaceOauth.PaginationOauth;
- import jnpf.exception.DataException;
- import java.util.List;
- /**
- * 接口认证服务
- *
- * @author JNPF开发平台组
- * @version V3.4.2
- * @copyright 引迈信息技术有限公司
- * @date 2022/6/8 9:26
- */
- public interface InterfaceOauthService extends SuperService<InterfaceOauthEntity> {
- /**
- * 判断接口认证名称是否重复
- *
- * @param appName 名称
- * @param id 主键
- * @return ignore
- */
- boolean isExistByAppName(String appName, String id);
- /**
- * 判断appId是否重复
- *
- * @param appId 名称
- * @param id 主键
- * @return ignore
- */
- boolean isExistByAppId(String appId, String id);
- /**
- * 获取接口列表(分页)
- *
- * @param pagination 分页参数
- * @return ignore
- */
- List<InterfaceOauthEntity> getList(PaginationOauth pagination);
- /**
- * 获取接口认证数据
- *
- * @param id 主键
- * @return ignore
- */
- InterfaceOauthEntity getInfo(String id);
- /**
- * 添加接口认证数据
- *
- * @param entity 实体
- */
- void create(InterfaceOauthEntity entity);
- /**
- * 修改接口
- *
- * @param entity 实体
- * @param id 主键
- * @return 实体
- * @throws DataException ignore
- */
- boolean update(InterfaceOauthEntity entity, String id) throws DataException;
- /**
- * 删除接口
- *
- * @param entity 实体
- */
- void delete(InterfaceOauthEntity entity);
- /**
- * 获取接口认证数据
- *
- * @param appId 主键
- * @return ignore
- */
- InterfaceOauthEntity getInfoByAppId(String appId);
- }
|