package com.example.backendmanage.controller;
import com.example.backendmanage.common.AjaxResult;
import com.example.backendmanage.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("user")
public class UserController {
@Autowired
UserMapper userMapper;
@RequestMapping("/findAllUser")
public AjaxResult findAllUser(){
return AjaxResult.success(userMapper.findAll());
}
}