//java service
package tx.txservice.service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;
public interface TemplateService<TDTO, TVO> {
//查询列表
public List<TDTO> getList(QueryWrapper<TDTO> queryWrapper);
//列表VO格式化
public List<TVO> formatVO(List<TDTO> pList);
//单条VO格式化
public List<TVO> formatVO(TDTO pItem);
//查询单条数据
public TDTO getOne(QueryWrapper<TDTO> pQuery);
//根据ID查询单条数据
public TDTO getOneById(Long pId);
//id解密
public Long idDecode(String pSid);
//id加密
public String idEncode(Long pId);
//删除
public void delete(String[] pSid);
//编辑
public void edit(TDTO pItem);
//添加
public void add(TDTO pItem);
}
标签:QueryWrapper,java,List,Long,tempalte,public,TDTO
From: https://www.cnblogs.com/kuangke/p/16760145.html