xiangpei
2025-05-14 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.mindskip.xzs.service;
 
import com.mindskip.xzs.domain.TextContent;
 
import java.util.Date;
import java.util.List;
import java.util.function.Function;
 
public interface TextContentService extends BaseService<TextContent> {
 
    /**
     * 创建一个TextContent,将内容转化为json,回写到content中,不入库
     *
     * @param list
     * @param now
     * @param mapper
     * @param <T>
     * @param <R>
     * @return
     */
    <T, R> TextContent jsonConvertInsert(List<T> list, Date now, Function<? super T, ? extends R> mapper);
 
    /**
     * 修改一个TextContent,将内容转化为json,回写到content中,不入库
     *
     * @param textContent
     * @param list
     * @param mapper
     * @param <T>
     * @param <R>
     * @return
     */
    <T, R> TextContent jsonConvertUpdate(TextContent textContent, List<T> list, Function<? super T, ? extends R> mapper);
 
}