| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | @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(); |