AgreementController.java
1.17 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
package com.glsx.usedcar.web.api;
import com.glsx.usedcar.module.business.entity.Agreement;
import com.glsx.usedcar.module.business.entity.Agreement_;
import com.glsx.usedcar.module.business.service.AgreementService;
import jakarta.annotation.Resource;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Sort;
import org.springframework.web.bind.annotation.*;
import org.summerframework.core.exception.FieldException;
import org.summerframework.orm.paging.Pagination;
import org.summerframework.orm.paging.SortOrder;
/**
* 协议管理(Agreement) PI接口
*
* @since 2025-10-13 12:18:11
*/
@Slf4j
@RestController
@RequestMapping("/api/agreement")
public class AgreementController {
/**
* Agreement服务对象
*/
@Resource
private AgreementService agreementService;
/**
* 根据id查询协议管理
*
* @param agreementKey
* @return
*/
@GetMapping("getAgreementByKey")
public Agreement getAgreementByKey(@RequestParam Agreement.AgreementKey agreementKey) {
return agreementService.getAgreementByKey(agreementKey);
}
}