package com.ruoyi.web.controller.warehouse;

import java.util.List;
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 com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.service.ISysUserService;

@RestController
@RequestMapping("/warehouse/user")
public class WarehouseUserController extends BaseController
{
    @Autowired
    private ISysUserService userService;

    @GetMapping("/optionselect")
    public AjaxResult optionselect()
    {
        SysUser user = new SysUser();
        user.setStatus(UserConstants.NORMAL);
        List<SysUser> users = userService.selectUserList(user);
        return success(users);
    }
}
