package com.ruoyi.web.work.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.work.domain.BindUser;
import com.ruoyi.web.work.domain.dto.BindDto;

import java.rmi.ServerException;
import java.util.List;

/**
 * @author lsw
 * @date 2024-07-26
 */
public interface IBindUserService extends IService<BindUser> {
    List<BindUser> selectList(BindUser bindUser);

    /**
     * 绑定就诊人
     *
     * @param dto
     * @return
     */
    AjaxResult bind(BindDto dto) throws ServerException;

    /**
     * 移除就诊人
     *
     * @param id
     * @return
     */
    AjaxResult remove(Long id) throws ServerException;

    /**
     * 切换就诊人
     *
     * @param id
     * @return
     */
    AjaxResult change(Long id) throws ServerException;
}
