xiangpei
2025-04-18 0aa739db8268b442ab74634289ffed00124a976a
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package ${package.Service};
 
import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import ${responseDataPath};
import ${package.Other}.form.${formInfo.formName};
import ${package.Other}.query.${queryInfo.queryName};
import java.util.List;
 
/**
 * $!{table.comment} 服务类
 *
 * @author ${author}
 * @since ${date}
 */
#if(${kotlin})
interface ${table.serviceName} : ${superServiceClass}<${entity}>
#else
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
 
    /**
     * 添加
     * @param form
     * @return
     */
    ${responseDataName} add(${formInfo.formName} form);
 
    /**
     * 修改
     * @param form
     * @return
     */
    ${responseDataName} update(${formInfo.formName} form);
 
    /**
     * 批量删除
     * @param ids
     * @return
     */
    ${responseDataName} remove(List<String> ids);
 
    /**
     * id删除
     * @param id
     * @return
     */
    ${responseDataName} removeById(String id);
 
    /**
     * 分页查询
     * @param query
     * @return
     */
    ${responseDataName} page(${queryInfo.queryName} query);
 
    /**
     * 根据id查找
     * @param id
     * @return
     */
    ${responseDataName} detail(Integer id);
 
    /**
     * 列表
     * @return
     */
    ${responseDataName} all();
}
#end