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());
|
}
|
}
|