package com.usky.park.controller.web;


import com.usky.common.core.bean.ApiResult;
import com.usky.park.domain.SysUser;
import com.usky.park.service.SysUserService;
import io.swagger.annotations.Api;
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 ya
 * @since 2022-04-21
 */
@RestController
@RequestMapping("/sysUser")
@Api(tags="用户信息表 前端控制器")
public class SysUserController {


    @Autowired
    private SysUserService sysUserService;

    @GetMapping("/list")
    public ApiResult<List<SysUser>> list(){
        return ApiResult.success(sysUserService.list());
    }
}

