fei.wang
2025-04-18 8c63366bfaa0b5f6e0db00abbabe0e770fc0d8dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.hxzkmonitor.controller;
 
 
import com.hxzkmonitor.pojo.TbDepartment;
import com.hxzkmonitor.service.TbDepartmentService;
import com.hxzkmonitor.util.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;
 
import java.util.List;
 
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wangfei
 * @since 2024-08-22
 */
@RestController
@RequestMapping("/")
public class TbDepartmentController {
 
    @Autowired
    TbDepartmentService buMenService;
 
    @GetMapping("/api/getbumen")
    public R getbumen(){
        return R.ok(buMenService.getbumen());
    }
}