package com.ga.core.mapper.upload;

import com.ga.core.vo.upload.UploadTemplateResp;
import com.ga.core.vo.upload.UploadTemplateSearchParam;
import com.ga.core.vo.upload.UploadTemplateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UploadTemplateMapper {

    List<UploadTemplateResp> selectList(UploadTemplateSearchParam param);

    UploadTemplateResp selectById(@Param("templateId") Long templateId);

    UploadTemplateVO selectByCode(@Param("templateCode") String templateCode);

    int existsByCode(@Param("templateCode") String templateCode);

    int insert(UploadTemplateVO vo);

    int update(UploadTemplateVO vo);

    int delete(@Param("templateId") Long templateId);
}
