package shop.alien.store.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.StoreStaffFitnessExperience;

import java.util.List;

/**
 * 运动健身员工从业经历表 服务类
 *
 * @author system
 * @since 2025-01-XX
 */
public interface StoreStaffFitnessExperienceService extends IService<StoreStaffFitnessExperience> {

    /**
     * 新增运动健身员工从业经历
     *
     * @param storeStaffFitnessExperience 运动健身员工从业经历
     * @return R<StoreStaffFitnessExperience>
     */
    R<StoreStaffFitnessExperience> addStoreStaffFitnessExperience(StoreStaffFitnessExperience storeStaffFitnessExperience);

    /**
     * 编辑运动健身员工从业经历
     *
     * @param storeStaffFitnessExperience 运动健身员工从业经历
     * @return R<StoreStaffFitnessExperience>
     */
    R<StoreStaffFitnessExperience> editStoreStaffFitnessExperience(StoreStaffFitnessExperience storeStaffFitnessExperience);

    /**
     * 删除运动健身员工从业经历
     *
     * @param id 主键
     * @return R<Boolean>
     */
    R<Boolean> deleteStoreStaffFitnessExperience(Integer id);

    /**
     * 根据ID查询运动健身员工从业经历
     *
     * @param id 主键
     * @return R<StoreStaffFitnessExperience>
     */
    R<StoreStaffFitnessExperience> getStoreStaffFitnessExperienceById(Integer id);

    /**
     * 分页查询运动健身员工从业经历列表
     *
     * @param pageNum  页码
     * @param pageSize 页容
     * @param staffId  员工id
     * @param workUnit 工作单位（模糊查询）
     * @param workPosition 职位（模糊查询）
     * @return IPage<StoreStaffFitnessExperience>
     */
    IPage<StoreStaffFitnessExperience> getPage(int pageNum, int pageSize, Integer staffId, String workUnit, String workPosition);

    /**
     * 根据员工ID查询从业经历列表
     *
     * @param staffId 员工id
     * @return List<StoreStaffFitnessExperience>
     */
    List<StoreStaffFitnessExperience> getListByStaffId(Integer staffId);

    /**
     * 批量删除运动健身员工从业经历（逻辑删除）
     *
     * @param ids 主键ID列表
     * @return boolean
     */
    boolean deleteBatch(List<Integer> ids);
}

