| | |
| | | |
| | | |
| | | import com.xiaopeng.account.mapper.XpOperationsRoleMapper; |
| | | import com.xiaopeng.account.model.dto.EnableDisableDTO; |
| | | import com.xiaopeng.account.model.dto.RePasswordDTO; |
| | | import com.xiaopeng.account.model.dto.XpOperationsUserAddDTO; |
| | | import com.xiaopeng.account.model.dto.XpOperationsUserDTO; |
| | | import com.xiaopeng.account.model.query.XpOperationsUserPageQuery; |
| | | import com.xiaopeng.account.model.query.XpOperationsUserQuery; |
| | | import com.xiaopeng.account.service.IXpOperationsUserService; |
| | | import com.xiaopeng.api.dto.account.XpOperationsUserQueryDTO; |
| | | import com.xiaopeng.api.model.account.XpOperationsUser; |
| | | import com.xiaopeng.api.vo.account.XpOperationsUserProfileVO; |
| | | import com.xiaopeng.api.vo.account.XpOperationsUserVO; |
| | | import com.xiaopeng.api.vo.account.XpOperationsUserWithRoleVO; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.web.page.PageInfo; |
| | |
| | | xpOperationsUserService.saveCertificate(dto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(value = "运维人员管理分页列表", tags = {"管理后台-运维执行"}) |
| | | @PostMapping("/api/v1/operationsUser/pageList") |
| | | public R<PageInfo<XpOperationsUserVO>> pageList(@RequestBody XpOperationsUserQuery query){ |
| | | PageInfo<XpOperationsUserVO> pageList = xpOperationsUserService.pageList(query); |
| | | return R.ok(pageList); |
| | | } |
| | | |
| | | @ApiOperation(value = "运维人员管理新增", tags = {"管理后台-运维执行"}) |
| | | @PostMapping("/api/v1/operationsUser/add") |
| | | public R<String> add(@RequestBody XpOperationsUserAddDTO dto){ |
| | | return xpOperationsUserService.addOperationsUser(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "运维人员管理编辑", tags = {"管理后台-运维执行"}) |
| | | @PostMapping("/api/v1/operationsUser/edit") |
| | | public R<String> edit(@RequestBody XpOperationsUserAddDTO dto){ |
| | | return xpOperationsUserService.editOperationsUser(dto); |
| | | } |
| | | @ApiOperation(value = "运维人员管理启用禁用", tags = {"管理后台-运维执行"}) |
| | | @PostMapping("/api/v1/operationsUser/enableDisableById") |
| | | public R<String> enableDisableById(@RequestBody EnableDisableDTO dto){ |
| | | xpOperationsUserService.enableDisableById(dto); |
| | | return R.ok(); |
| | | } |
| | | @ApiOperation(value = "运维人员管理删除", tags = {"管理后台-运维执行"}) |
| | | @DeleteMapping("/api/v1/operationsUser/deleteById") |
| | | public R<String> deleteById(@RequestParam Long id){ |
| | | xpOperationsUserService.removeById(id); |
| | | return R.ok(); |
| | | } |
| | | @ApiOperation(value = "运维人员管理重置密码", tags = {"管理后台-运维执行"}) |
| | | @DeleteMapping("/api/v1/operationsUser/rePassword") |
| | | public R<String> rePassword(@RequestBody RePasswordDTO dto){ |
| | | xpOperationsUserService.rePassword(dto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(value = "运维人员管理详情", tags = {"管理后台-运维执行"}) |
| | | @GetMapping("/api/v1/operationsUser/detailById") |
| | | public R<XpOperationsUserVO> detailById(@RequestParam Long id){ |
| | | XpOperationsUserVO xpOperationsUserVO = xpOperationsUserService.detailById(id); |
| | | return R.ok(xpOperationsUserVO); |
| | | } |
| | | } |