AgreementController.java 1.04 KB
package com.glsx.usedcar.controller;

import com.glsx.usedcar.module.business.entity.Agreement;
import com.glsx.usedcar.module.business.service.AgreementService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * 协议管理(Agreement) PI接口
 *
 * @since 2025-10-13 12:18:11
 */
@Slf4j
@RestController
@RequestMapping("/rest/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);
    }


}