This commit is contained in:
张良(004796)
2024-03-27 16:13:36 +08:00
parent 2e4aaba124
commit 6f92585337

View File

@@ -0,0 +1,25 @@
package com.ruoyi.web.controller.cai;
import cn.dev33.satoken.annotation.SaIgnore;
import com.ruoyi.cai.domain.AgreementSetting;
import com.ruoyi.cai.service.AgreementSettingService;
import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/inner")
@SaIgnore
public class InnerController {
@Autowired
private AgreementSettingService agreementSettingService;
@GetMapping("/agreement")
public R<AgreementSetting> report(){
AgreementSetting agreementSetting = agreementSettingService.getAgreementSetting();
return R.ok(agreementSetting);
}
}