package shop.alien.lawyer.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import shop.alien.entity.result.R;
import shop.alien.entity.store.LawyerExpertiseArea;

import java.util.List;

/**
 * 领域信息 服务类
 *
 * @author system
 * @since 2025-01-XX
 */
public interface LawyerExpertiseAreaService extends IService<LawyerExpertiseArea> {

    /**
     * 分页查询领域信息列表
     *
     * @param pageNum           页码
     * @param pageSize          页容
     * @param expertiseAreaInfo 领域信息（支持模糊查询）
     * @return IPage<LawyerExpertiseArea>
     */
    R<IPage<LawyerExpertiseArea>> getExpertiseAreaList(int pageNum, int pageSize, String expertiseAreaInfo);

    /**
     * 新增领域信息
     *
     * @param expertiseArea 领域信息
     * @return R<LawyerExpertiseArea>
     */
    R<LawyerExpertiseArea> addExpertiseArea(LawyerExpertiseArea expertiseArea);

    /**
     * 编辑领域信息
     *
     * @param expertiseArea 领域信息
     * @return R<LawyerExpertiseArea>
     */
    R<LawyerExpertiseArea> editExpertiseArea(LawyerExpertiseArea expertiseArea);

    /**
     * 删除领域信息
     *
     * @param id 主键
     * @return R<Boolean>
     */
    R<Boolean> deleteExpertiseArea(Integer id);

    /**
     * 通用列表查询
     *
     * @param expertiseArea 领域信息查询条件
     * @return List<LawyerExpertiseArea>
     */
    R<List<LawyerExpertiseArea>> getList(LawyerExpertiseArea expertiseArea);

    /**
     * 通用分页查询
     *
     * @param expertiseArea 领域信息查询条件
     * @param page          页码
     * @param size          页容
     * @return IPage<LawyerExpertiseArea>
     */
    R<IPage<LawyerExpertiseArea>> getPage(LawyerExpertiseArea expertiseArea, int page, int size);
}

