package shop.alien.lawyer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import shop.alien.entity.store.LawyerImg;
import shop.alien.entity.store.vo.LawyerImgTypeVo;

import java.util.List;

/**
 * 律师图片 服务类
 *
 * @author system
 * @since 2025-01-XX
 */
public interface LawyerImgService extends IService<LawyerImg> {

    /**
     * 获取律师图片
     *
     * @param lawyerId 律师ID
     * @param imgType  图片类型, 0:其他, 1:头像, 2:执业证照片, 3:身份证正面, 4:身份证反面, 5:案例图片, 6:相册图片, 7:资质证书, 8:荣誉证书, 9:工作照片
     * @return list
     */
    List<LawyerImg> getLawyerImg(Integer lawyerId, Integer imgType);

    /**
     * 获取所有图片类型和数量
     *
     * @param lawyerId 律师ID
     * @return LawyerImgTypeVo
     */
    List<LawyerImgTypeVo> getLawyerImgTypeCount(Integer lawyerId);

    /**
     * 获取图片URL列表
     *
     * @param id      律师ID
     * @param imgType 图片类型
     * @return List<String>
     */
    List<String> getUrl(String id, Integer imgType);

    /**
     * 通过businessId获取图片
     *
     * @param lawyerId  律师ID
     * @param imgType   图片类型
     * @param businessId 业务ID
     * @return list
     */
    List<LawyerImg> getByBusinessId(Integer lawyerId, Integer imgType, Integer businessId);

    /**
     * 删除图片
     *
     * @param lawyerId 律师ID
     * @param imgType  图片类型
     */
    int saveOrUpdateImg(Integer lawyerId, Integer imgType);
}

