electripper-v2/ruoyi-web/src/main/java/com/ruoyi/web/app/AppAgreementController.java

26 lines
774 B
Java
Raw Normal View History

package com.ruoyi.web.app;
import com.ruoyi.bst.agreement.domain.AgreementQuery;
import com.ruoyi.bst.agreement.service.AgreementService;
import com.ruoyi.common.core.controller.BaseController;
2025-04-09 20:36:35 +08:00
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
2025-04-09 20:36:35 +08:00
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/app/agreement")
public class AppAgreementController extends BaseController {
@Autowired
private AgreementService agreementService;
2025-04-09 20:36:35 +08:00
@ApiOperation("查询最新协议")
@GetMapping("/latest")
public AjaxResult getAgreement(AgreementQuery query) {
return success(agreementService.selectLatest(query));
}
}