refactor(sis): 定时授权任务通过snail-job触发
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
package org.dromara.sis.api;
|
||||
|
||||
import org.dromara.sis.api.domain.RemotePersonAuth;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* @author lsm
|
||||
* @apiNote RemoteSisAuth
|
||||
* @since 2025/7/24
|
||||
*/
|
||||
public interface RemoteSisAuth {
|
||||
|
||||
Boolean personAuth(RemotePersonAuth personAuth);
|
||||
|
||||
Boolean updatePersonAuth(RemotePersonAuth personAuth);
|
||||
|
||||
Boolean deletePersonAuth(Collection<Long> personId, Collection<Long> e8Ids);
|
||||
}
|
@@ -0,0 +1,75 @@
|
||||
package org.dromara.sis.api;
|
||||
|
||||
import org.dromara.sis.api.domain.RemotePersonAuth;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* @author lsm
|
||||
* @apiNote RemoteSisAuthService
|
||||
* @since 2025/7/24
|
||||
*/
|
||||
public interface RemoteSisAuthService {
|
||||
|
||||
/**
|
||||
* 人员授权
|
||||
*
|
||||
* @param personAuth 人员授权信息
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean personAuth(RemotePersonAuth personAuth);
|
||||
|
||||
/**
|
||||
* 删除人员授权信息
|
||||
*
|
||||
* @param personIds 入驻员工ids
|
||||
* @param e8Ids e8平台人员id是
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean deletePersonAuth(Collection<Long> personIds, Collection<Long> e8Ids);
|
||||
|
||||
/**
|
||||
* 查询人员授权信息
|
||||
*
|
||||
* @param authGroupId 权限组id
|
||||
* @param personId 人员id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean queryPersonAuth(Long authGroupId, Long personId);
|
||||
|
||||
/**
|
||||
* 通过MD5,查询图片id
|
||||
*
|
||||
* @param imgMd5 图片MD5
|
||||
* @return Long
|
||||
*/
|
||||
Long queryImgIdByImgMd5(String imgMd5);
|
||||
|
||||
/**
|
||||
* 图片写入华为盒子
|
||||
*
|
||||
* @param person 人员信息
|
||||
* @param imgByte 图片字节数组
|
||||
* @return Long 图片id
|
||||
*/
|
||||
Long syncHuaweiBox(RemotePersonAuth person, byte[] imgByte);
|
||||
|
||||
/**
|
||||
* 更新人像信息
|
||||
*
|
||||
* @param id 入驻员工id
|
||||
* @param huaweiBoxId 华为盒子id
|
||||
* @param md5Str 图片MD5
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean updateImgByPersonId(Long id, Long huaweiBoxId, String md5Str);
|
||||
|
||||
/**
|
||||
* 图片写入E8平台
|
||||
*
|
||||
* @param person 人员信息
|
||||
* @param imgByte 图片字节数组
|
||||
* @return Long e8平台id
|
||||
*/
|
||||
Long syncE8Plat(RemotePersonAuth person, byte[] imgByte);
|
||||
}
|
Reference in New Issue
Block a user