|
|
@@ -2,6 +2,8 @@ package com.kym.miniapp.controller;
|
|
|
|
|
|
import com.kym.common.R;
|
|
|
import com.kym.common.annotation.SysLog;
|
|
|
+import com.kym.service.admin.ContactService;
|
|
|
+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;
|
|
|
@@ -12,11 +14,15 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @date 2023-07-26 23:51
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/api/common/")
|
|
|
+@RequestMapping("/common/")
|
|
|
public class CommonController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ContactService contactService;
|
|
|
+
|
|
|
@SysLog("联系我们")
|
|
|
- @GetMapping("contact")
|
|
|
+ @GetMapping("/contact")
|
|
|
R contact() {
|
|
|
- return R.success();
|
|
|
+ return R.success(contactService.list().stream().findFirst());
|
|
|
}
|
|
|
}
|