|
@@ -5,6 +5,7 @@ import com.citu.framework.common.pojo.CommonResult;
|
|
|
import com.citu.framework.common.pojo.PageParam;
|
|
|
import com.citu.framework.common.pojo.PageResult;
|
|
|
import com.citu.framework.common.util.object.BeanUtils;
|
|
|
+import com.citu.framework.common.util.string.StrUtils;
|
|
|
import com.citu.framework.excel.core.util.ExcelUtils;
|
|
|
import com.citu.module.menduner.system.controller.base.enterprise.bind.*;
|
|
|
import com.citu.module.menduner.system.dal.dataobject.enterprise.EnterpriseUserBindDO;
|
|
@@ -99,4 +100,38 @@ public class EnterpriseUserBindController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @PutMapping("/update-password")
|
|
|
+ @Operation(summary = "修改用户密码")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:enterprise-user-bind:update')")
|
|
|
+ public CommonResult<Boolean> updatePassword(@Valid @RequestBody EnterpriseUpdatePasswordReqVO reqVO) {
|
|
|
+ enterpriseUserBindService.updatePassword(reqVO.getId(), reqVO.getPassword());
|
|
|
+ return success(true);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @PutMapping("/update-email")
|
|
|
+ @Operation(summary = "修改用户邮箱")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:enterprise-user-bind:update')")
|
|
|
+ public CommonResult<Boolean> updateUserPassword(@Valid @RequestBody EnterpriseUpdatePasswordReqVO reqVO) {
|
|
|
+ enterpriseUserBindService.updateEmail(reqVO.getId(), reqVO.getPassword());
|
|
|
+ return success(true);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("/disable")
|
|
|
+ @Operation(summary = "禁用账户")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:enterprise-user-bind:update')")
|
|
|
+ public CommonResult<Boolean> disable(@RequestParam("ids") String ids) {
|
|
|
+ return success(enterpriseUserBindService.disable(StrUtils.splitToLong(ids)));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("/enable")
|
|
|
+ @Operation(summary = "启用账户")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:enterprise-user-bind:update')")
|
|
|
+ public CommonResult<Boolean> enable(@RequestParam("ids") String ids) {
|
|
|
+ return success(enterpriseUserBindService.enable(StrUtils.splitToLong(ids)));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|