wlzboy
2025-11-08 cdcc529ce5fb9aa0dd1dea5bb2a620fc09b7d25c
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
package com.ruoyi.system.service;
 
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.UserSyncDTO;
import java.util.List;
 
/**
 * 用户同步Service接口
 * 
 * @author ruoyi
 * @date 2025-10-18
 */
public interface IUserSyncService
{
 
    
    /**
     * 同步OA用户数据(使用外部传入的数据源)
     * 
     * 此方法接收外部已经查询好的数据,只负责写入 MySQL 数据库
     * 适用场景:
     * 1. 数据已从其他来源获取
     * 2. 需要对数据进行预处理后再同步
     * 3. 批量同步多个数据源
     * 
     * @param oaUsers 外部传入的OA用户数据列表
     * @return 同步结果
     */
    AjaxResult syncOaUsers(List<UserSyncDTO> oaUsers);
}