package com.fs.app.controller.qw;

import com.fs.app.controller.AppBaseController;
import com.fs.common.core.domain.R;
import com.fs.common.utils.ServletUtils;
import com.fs.qw.service.IQwUserService;
import com.fs.qw.vo.QwOptionsVO;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
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;

@RestController
@RequestMapping(value="/app/qwUser")
public class QwUserController extends AppBaseController {

    @Autowired
    private IQwUserService qwUserService;

    @ApiOperation("我的企业信息")
    @GetMapping("/getMyQwUserList")
    public R getMyQwUserList(@Param("companyUserId") Long companyUserId)
    {
        List<QwOptionsVO> list = qwUserService.selectQwUserListOptionsVOByCompanyUserId(companyUserId);
        return  R.ok().put("data",list);
    }
}
