package com.rj.service;

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

import java.util.Map;

public interface ILbUserService extends IService<LbUser> {

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

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

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

    Map<String, Object> pageQuery(
            Integer current,
            Integer size,
            String tenantId,
            Long pid,
            String username,
            String nickname,
            String mobile,
            String invite,
            Integer status,
            Integer isVip,
            Integer isResell,
            Integer level,
            String pname,
            String joinTimeStart,
            String joinTimeEnd,
            String updatedAtStart,
            String updatedAtEnd);

    /**
     * 从 hxrd 后台 user/select 分页拉取全部用户并写入 lb_user（每页拉取后立即 upsert）。
     */
    Map<String, Object> syncFromHxrAdmin(String tenantId);
}
