package com.bonus.canteen.core.supply.purchase.controller;

import com.bonus.canteen.core.supply.purchase.service.SupplyUserService;
import com.bonus.common.core.web.controller.BaseController;
import com.bonus.system.api.domain.SysUser;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping({"/supply/user"})
public class SupplyUserController extends BaseController {
    @Autowired
    private SupplyUserService supplyUserService;

    @PostMapping({"/list"})
    @ApiOperation("获取操作员")
    public List<SysUser> getOperateUser() {
        return this.supplyUserService.getOperateUser();
    }
}
