mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: Some attributes of namespace cannot be shown back #854
This commit is contained in:
parent
5be7b24f4b
commit
32cecc59e9
@ -16,7 +16,9 @@ public class NamespaceConverter {
|
|||||||
|
|
||||||
public static NamespaceBaseVO do2BaseVo(NamespaceDO d) {
|
public static NamespaceBaseVO do2BaseVo(NamespaceDO d) {
|
||||||
NamespaceBaseVO v = new NamespaceBaseVO();
|
NamespaceBaseVO v = new NamespaceBaseVO();
|
||||||
|
|
||||||
BeanUtils.copyProperties(d, v);
|
BeanUtils.copyProperties(d, v);
|
||||||
|
|
||||||
v.setGmtCreateStr(CommonUtils.formatTime(d.getGmtCreate()));
|
v.setGmtCreateStr(CommonUtils.formatTime(d.getGmtCreate()));
|
||||||
v.setGmtModifiedStr(CommonUtils.formatTime(d.getGmtModified()));
|
v.setGmtModifiedStr(CommonUtils.formatTime(d.getGmtModified()));
|
||||||
v.setStatusStr(SwitchableStatus.of(d.getStatus()).name());
|
v.setStatusStr(SwitchableStatus.of(d.getStatus()).name());
|
||||||
|
@ -28,6 +28,14 @@ public class NamespaceBaseVO implements Serializable {
|
|||||||
*/
|
*/
|
||||||
protected String name;
|
protected String name;
|
||||||
|
|
||||||
|
private String dept;
|
||||||
|
private String tags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 扩展字段
|
||||||
|
*/
|
||||||
|
private String extra;
|
||||||
|
|
||||||
private Integer status;
|
private Integer status;
|
||||||
private String statusStr;
|
private String statusStr;
|
||||||
|
|
||||||
|
@ -16,14 +16,6 @@ import tech.powerjob.server.web.request.ComponentUserRoleInfo;
|
|||||||
@ToString
|
@ToString
|
||||||
public class NamespaceVO extends NamespaceBaseVO {
|
public class NamespaceVO extends NamespaceBaseVO {
|
||||||
|
|
||||||
private String dept;
|
|
||||||
private String tags;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 扩展字段
|
|
||||||
*/
|
|
||||||
private String extra;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 访问 token
|
* 访问 token
|
||||||
* 仅拥有当前 namespace 权限的访问者可见
|
* 仅拥有当前 namespace 权限的访问者可见
|
||||||
|
Loading…
x
Reference in New Issue
Block a user