package com.ycwl.basic.mapper; import com.ycwl.basic.model.mobile.scenic.content.ContentPageVO; import com.ycwl.basic.model.pc.template.entity.TemplateConfigEntity; import com.ycwl.basic.model.pc.template.entity.TemplateEntity; import com.ycwl.basic.model.pc.template.req.TemplateReqQuery; import com.ycwl.basic.model.pc.template.resp.TemplateRespVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * @Author:longbinbin * @Date:2024/12/2 14:29 * 模版 */ @Mapper public interface TemplateMapper { List list(TemplateReqQuery templateReqQuery); TemplateRespVO getById(Long id); TemplateEntity get(Long id); int add(TemplateEntity task); int deleteById(Long id); int update(TemplateEntity task); int updateStatus(Long id); int deleteByPid(Long pid); int deleteByScenicId(Long scenicId); List getByPid(Long id); TemplateConfigEntity getConfig(Long templateId); int addConfig(TemplateConfigEntity templateConfig); int updateConfigById(TemplateConfigEntity templateConfigEntity); int deleteConfigByTemplateId(Long templateId); int deleteConfigById(Long id); List listEnabledByScenicId(Long scenicId); List listEnabledTemplateIdByScenicId(Long scenicId); List listFor(@Param("scenicId") Long scenicId); }