api 모듈도 수정
This commit is contained in:
@@ -172,7 +172,7 @@
|
|||||||
|
|
||||||
const button = document.createElement('button');
|
const button = document.createElement('button');
|
||||||
button.type = 'button';
|
button.type = 'button';
|
||||||
button.className = depth === 1 ? 'tit onedepth' : depth === 2 ? 'tit twodepth' : '';
|
button.className = 'tit';
|
||||||
button.setAttribute('data-id', node.id || '');
|
button.setAttribute('data-id', node.id || '');
|
||||||
button.setAttribute('data-parent-id', node.parentId || '');
|
button.setAttribute('data-parent-id', node.parentId || '');
|
||||||
button.setAttribute('data-order-no', node.orderNo || '0');
|
button.setAttribute('data-order-no', node.orderNo || '0');
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
|
|
||||||
if (node.nodes && node.nodes.length > 0) {
|
if (node.nodes && node.nodes.length > 0) {
|
||||||
const childUl = document.createElement('ul');
|
const childUl = document.createElement('ul');
|
||||||
childUl.className = depth === 1 ? 'list-twodepth' : 'list-threedepth';
|
childUl.className = depth === 1 ? 'list-detail' : 'list-detail';
|
||||||
li.appendChild(childUl);
|
li.appendChild(childUl);
|
||||||
node.nodes.forEach(child => renderNode(child, childUl, depth + 1));
|
node.nodes.forEach(child => renderNode(child, childUl, depth + 1));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,13 +47,15 @@ class CreateAdminController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String createdId =
|
String createdId =
|
||||||
saveAdminPortIn.connect(
|
saveAdminPortIn.apiConnect(
|
||||||
reqVO.getSeq(),
|
reqVO.getSeq(),
|
||||||
reqVO.getId(),
|
reqVO.getId(),
|
||||||
reqVO.getPassword(),
|
reqVO.getPassword(),
|
||||||
|
reqVO.getName(),
|
||||||
|
reqVO.getPhone(),
|
||||||
reqVO.getRegionMainCode(),
|
reqVO.getRegionMainCode(),
|
||||||
reqVO.getAccountDisabled(),
|
reqVO.getAccountDisabled(),
|
||||||
reqVO.getRoleIds());
|
reqVO.getRoleId());
|
||||||
|
|
||||||
return ResponseEntity.status(HttpStatus.OK).body(new CreateAdminResVO(createdId));
|
return ResponseEntity.status(HttpStatus.OK).body(new CreateAdminResVO(createdId));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ import lombok.Setter;
|
|||||||
public class CreateAdminReqVO {
|
public class CreateAdminReqVO {
|
||||||
private Long seq;
|
private Long seq;
|
||||||
private String id;
|
private String id;
|
||||||
|
private String name;
|
||||||
private String password;
|
private String password;
|
||||||
|
private String phone;
|
||||||
|
|
||||||
@NotBlank(message = "{valid.common.required}")
|
@NotBlank(message = "{valid.common.required}")
|
||||||
@Pattern(
|
@Pattern(
|
||||||
@@ -37,5 +39,5 @@ public class CreateAdminReqVO {
|
|||||||
@Schema(description = "계정 잠김", example = "false")
|
@Schema(description = "계정 잠김", example = "false")
|
||||||
private Boolean accountLocked;
|
private Boolean accountLocked;
|
||||||
|
|
||||||
private List<String> roleIds;
|
private String roleId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user