123
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user