1.
phpcjl
2024-12-10 1690d4d06b0c20b3606e50e0844ef67e07947a0d
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/BaseSettingController.java
@@ -1,8 +1,12 @@
package com.ruoyi.other.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.other.api.domain.BaseSetting;
import com.ruoyi.other.service.BaseSettingService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
 * <p>
@@ -16,5 +20,24 @@
@RequestMapping("/base-setting")
public class BaseSettingController {
   @Resource
   private BaseSettingService baseSettingService;
   /**
    * 获取基础配置
    * @param id
    * @return
    */
   @ResponseBody
   @PostMapping("/getBaseSetting")
   public R<BaseSetting> getBaseSetting(@RequestParam("id") Integer id){
      BaseSetting baseSetting = baseSettingService.getById(id);
      return R.ok(baseSetting);
   }
}