package com.dk.mdm.controller.mst; import com.dk.common.response.ResponseResultVO; import com.dk.mdm.model.pojo.mst.StaffPurview; import com.dk.common.controller.BaseController; import com.dk.common.service.BaseService; import com.dk.mdm.model.vo.mst.StaffVO; import com.dk.mdm.service.mst.StaffService; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RestController; import io.swagger.annotations.Api; import com.dk.mdm.service.mst.StaffPurviewService; import java.util.Map; /** * @desc : 员工数据范围API接口 * @author : 姜永辉 * @date : 2023/1/4 9:25 */ @Api(tags = "员工数据范围API接口") @RestController @RequestMapping("/mst/staff_purview") public class StaffPurviewController{ public BaseService getService() { return staffPurviewService; } @Autowired private StaffPurviewService staffPurviewService; @Autowired private StaffService staffService; /** * @desc : 员工数据范围 * @author : 姜永辉 * @date : 2024/2/26 10:36 */ @ApiOperation( value = "获取员工权限", notes = "获取员工权限" ) @PostMapping("get_staff_purview") public ResponseResultVO> getStaffPurview(@RequestBody Map param) { return staffPurviewService.getStaffPurview(param); } /** * @desc : 新建员工--员工数据范围 * @author : 姜永辉 * @date : 2023/1/9 10:48 */ @ApiOperation(value = "新建员工--权限", notes = "新建员工--权限") @PostMapping({"save_staff_purview"}) public ResponseResultVO saveStaffPurview(@RequestBody StaffVO staffVO) { return staffService.saveStaffPurview(staffVO); } }