| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.log.annotation.Log; |
| | | import com.ruoyi.common.log.enums.BusinessType; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseGetDto; |
| | | import com.ruoyi.system.domain.dto.*; |
| | |
| | | import com.ruoyi.system.service.staff.SysStaffService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | |
| | | * @description: TODO |
| | | * @date 2023 2023/6/11 18:36 |
| | | */ |
| | | @Api(value = "平台端员工相关接口", tags = "平台端员工相关接口", description = "平台端员工相关接口") |
| | | @Api(value = "管理后台员工相关接口", tags = "管理后台员工相关接口", description = "管理后台员工相关接口") |
| | | @RestController |
| | | @RequestMapping("/mgt/staff") |
| | | public class MgtStaffController { |
| | |
| | | |
| | | @RequestMapping(value = "/exportPageMgtStaffSuggest", method = RequestMethod.POST) |
| | | @ApiOperation(value = "导出员工建议列表") |
| | | public void exportPageMgtStaffSuggest(@RequestBody MgtStaffSuggestPageDto mgtStaffSuggestPageDto, HttpServletResponse response) { |
| | | public void exportPageMgtStaffSuggest(MgtStaffSuggestPageDto mgtStaffSuggestPageDto, HttpServletResponse response) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtStaffSuggestPageDto.setUserId(userId); |
| | | Page<MgtStaffSuggestPageVo> page = new Page<>(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/mgtReplayStaffSuggest", method = RequestMethod.POST) |
| | | @Log(title = "建议管理", businessType = BusinessType.UPDATE,operContent = "平台回复会员建议") |
| | | @ApiOperation(value = "平台回复会员建议") |
| | | public R mgtReplayStaffSuggest(@RequestBody MgtReplayStaffSuggestDto mgtReplayStaffSuggestDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/mgtEditStaffSuggestTag", method = RequestMethod.POST) |
| | | @Log(title = "建议管理", businessType = BusinessType.UPDATE,operContent = "编辑会员建议标签") |
| | | @ApiOperation(value = "平台编辑会员建议标签") |
| | | public R mgtEditStaffSuggestTag(@RequestBody MgtTagStaffSuggestDto mgtTagStaffSuggestDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/mgtEditStaff", method = RequestMethod.POST) |
| | | @Log(title = "员工管理", businessType = BusinessType.UPDATE,operContent = "编辑员工") |
| | | @ApiOperation(value = "平台编辑员工") |
| | | public R mgtEditStaff(@RequestBody MgtStaffEditDto mgtStaffEditDto) { |
| | | public R mgtEditStaff(@Validated @RequestBody MgtStaffEditDto mgtStaffEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtStaffEditDto.setUserId(userId); |
| | | sysStaffService.mgtStaffEdit(mgtStaffEditDto); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/mgtDeleteStaff", method = RequestMethod.POST) |
| | | @Log(title = "员工管理", businessType = BusinessType.DELETE,operContent = "删除员工") |
| | | @ApiOperation(value = "平台删除员工") |
| | | public R mgtStaffEdit(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | Long userId = SecurityUtils.getUserId(); |