1 Star 0 Fork 16

xialinlin8520@163.com / hp-soa

forked from 伤神小怪兽 / hp-soa 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
AccessVerificationService.java 781 Bytes
一键复制 编辑 原始数据 按行查看 历史
伤神小怪兽 提交于 2023-10-26 17:57 . 20231026
package io.github.hpsocket.soa.framework.web.service;
import io.github.hpsocket.soa.framework.core.util.Pair;
/** <b>HTTP 请求校验服务接口</b><br>
* 所有需要执行 HTTP 请求校验的应用程序都必须实现该接口
*/
public interface AccessVerificationService
{
/** 应用程序编号校验,成功:Pair(True, ?),失败:Pair(False, ?) */
Pair<Boolean, String> verifyAppCode(String appCode, String srcAppCode);
/** 用户身份校验,成功:Pair(userId, ?),失败:Pair(null, ?) */
Pair<Long, String> verifyUser(String token, Long groupId);
/** 用户授权校验,成功:Pair(True, ?),失败:Pair(False, ?) */
Pair<Boolean, String> verifyAuthorization(String route, String appCode, Long groupId, Long userId);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/xialinlin/hp-soa.git
git@gitee.com:xialinlin/hp-soa.git
xialinlin
hp-soa
hp-soa
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891