FrameTour-BE/src/main/java/com/ycwl/basic/mapper/TemplateMapper.java
2025-01-13 10:26:18 +08:00

39 lines
1.4 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
/**
* @Authorlongbinbin
* @Date2024/12/2 14:29
* 模版
*/
@Mapper
public interface TemplateMapper {
List<TemplateRespVO> 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<TemplateRespVO> getByPid(Long id);
TemplateConfigEntity getConfig(Long templateId);
int addConfig(TemplateConfigEntity templateConfig);
int updateConfigById(TemplateConfigEntity templateConfigEntity);
int deleteConfigByTemplateId(Long templateId);
int deleteConfigById(Long id);
List<TemplateEntity> listEnabledByScenicId(Long scenicId);
List<Long> listEnabledTemplateIdByScenicId(Long scenicId);
List<ContentPageVO> listFor(@Param("scenicId") Long scenicId);
}