package com.mindskip.xzs.service;
|
|
import com.mindskip.xzs.domain.TextContent;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.function.Function;
|
|
/**
|
* @version 2.2.0
|
* @description: 接口基础类
|
* Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
|
* @date 2021 /9/7 9:45
|
*/
|
public interface TextContentService extends BaseService<TextContent> {
|
|
/**
|
* 创建一个TextContent,将内容转化为json,回写到content中,不入库
|
*
|
* @param <T> the type parameter
|
* @param <R> the type parameter
|
* @param list the list
|
* @param now the now
|
* @param mapper the mapper
|
* @return text content
|
*/
|
<T, R> TextContent jsonConvertInsert(List<T> list, Date now, Function<? super T, ? extends R> mapper);
|
|
/**
|
* 修改一个TextContent,将内容转化为json,回写到content中,不入库
|
*
|
* @param <T> the type parameter
|
* @param <R> the type parameter
|
* @param textContent the text content
|
* @param list the list
|
* @param mapper the mapper
|
* @return text content
|
*/
|
<T, R> TextContent jsonConvertUpdate(TextContent textContent, List<T> list, Function<? super T, ? extends R> mapper);
|
|
}
|