package com.rj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rj.entity.LbDepartmentUser;

import java.time.LocalDate;
import java.util.Map;

public interface ILbDepartmentUserService extends IService<LbDepartmentUser> {

    Map<String, Object> add(LbDepartmentUser entity);

    Map<String, Object> update(LbDepartmentUser entity);

    Map<String, Object> deleteById(String id);

    Map<String, Object> pageQuery(Integer current,
                                  Integer size,
                                  String tenantId,
                                  String userId,
                                  String parentId,
                                  String name,
                                  String phone,
                                  String industry);

    Map<String, Object> bindParentUser(String parentUserId,
                                       String parentUserName,
                                       String childUserId,
                                       String childUserName,
                                       String tenantId);

    Map<String, Object> syncFromDailyUserTrade(LocalDate startDate, LocalDate endDate);
}
