TestService.java
1.2 KB
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
package com.canrd.webmagic.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.canrd.webmagic.common.constant.ServerResult;
import com.canrd.webmagic.domain.dto.TestDO;
import com.canrd.webmagic.domain.vo.TestQueryVO;
import com.canrd.webmagic.domain.vo.TestVO;
/**
* (Test)表服务接口
*
* @author makejava
* @since 2024-01-12 14:36:57
*/
public interface TestService extends IService<TestDO> {
/**
* 通过ID查询单条数据
*
* @param testQueryVO 主键
* @return 实例对象
*/
ServerResult queryById(TestQueryVO testQueryVO);
/**
* 分页查询
*
* @param testQueryVO 筛选条件
* @return 查询结果
*/
ServerResult list(TestQueryVO testQueryVO);
/**
* 新增数据
*
* @param testVO 数据VO
* @return 新增结果
*/
ServerResult add(TestVO testVO);
/**
* 修改数据
*
* @param testVO 数据VO
* @return 编辑结果
*/
ServerResult edit(TestVO testVO);
/**
* 通过主键删除数据
*
* @param testQueryVO 筛选条件
* @return 是否成功
*/
ServerResult deleteById(TestQueryVO testQueryVO);
}