|
@@ -75,4 +75,15 @@ public class TenantActivationCodeController extends BaseController {
|
|
|
tenantActivationCodeService.active(activationCode, sysUser.getId());
|
|
|
return succeed();
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "激活激活码")
|
|
|
+ @PostMapping("/activeById")
|
|
|
+ public HttpResponseResult<Boolean> activeById(@RequestParam("id") String id) {
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ if (sysUser == null || null == sysUser.getId()) {
|
|
|
+ throw new BizException("请登录");
|
|
|
+ }
|
|
|
+ tenantActivationCodeService.activeById(id, sysUser.getId());
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
}
|