package com.zg.project.information.controller;

import com.zg.framework.web.controller.BaseController;
import com.zg.framework.web.domain.AjaxResult;
import com.zg.project.system.domain.SysUser;
import com.zg.project.system.service.ISysUserService;
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;

/**
 * 用户信息
 *
 * @author zg
 */
@RestController
@RequestMapping("/information/user")
public class UserController extends BaseController {

    @Autowired
    private ISysUserService userService;

    /**
     * 获取用户列表
     */
    @GetMapping("/getAll")
    public AjaxResult getAll() {
        List<SysUser> list = userService.getAll();
        return AjaxResult.success(list);
    }
}
