2025-04-07 20:36:04 +08:00
|
|
|
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;
|
2025-04-07 20:36:04 +08:00
|
|
|
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.*;
|
2025-04-07 20:36:04 +08:00
|
|
|
|
|
|
|
@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));
|
2025-04-07 20:36:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|