package com.ai.da.service;


import com.ai.da.mapper.primary.entity.TDesignPythonOutfitDetail;
import com.ai.da.model.vo.DesignPythonOutfitVO;
import com.ai.da.model.vo.TDesignPythonOutfitDetailVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * design item详情表 服务类
 *
 * @author SHAHAIBO
 * @since 2023-09-04
 */
public interface ITDesignPythonOutfitDetailService extends IService<TDesignPythonOutfitDetail> {

    /**
     * 自定义分页
     *
     * @param page
     * @param tDesignPythonOutfitDetail
     * @return
     */
    IPage<TDesignPythonOutfitDetailVO> selectTDesignPythonOutfitDetailPage(IPage<TDesignPythonOutfitDetailVO> page, TDesignPythonOutfitDetailVO tDesignPythonOutfitDetail);

    /**
     * 通过DesignPythonOutfitId获取designPythonOutfitDetail
     *
     * @param designPythonOutfitId
     * @return
     */
    List<TDesignPythonOutfitDetail> getDetailByDesignPythonOutfitId(Long designPythonOutfitId);

    DesignPythonOutfitVO convertToDesignPythonOutfitVO(TDesignPythonOutfitDetail detail, List<Long> offset);

    void deleteByDesignPythonOutfitIdLogical(Long designPythonOutfitId);

    void deleteByDesignPythonOutfitIdPhysical(Long designPythonOutfitId);

    void setDesignPythonOutfitDetailPriority(List<TDesignPythonOutfitDetail> details);

}
