mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +00:00
Class (#939)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.request;
|
||||
|
||||
import com.tencent.supersonic.headless.api.pojo.SchemaItem;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ClassReq extends SchemaItem {
|
||||
|
||||
private Long domainId;
|
||||
private Long tagObjectId;
|
||||
private Long parentId;
|
||||
private List<Long> itemIds;
|
||||
|
||||
}
|
||||
@@ -20,11 +20,13 @@ public class SqlExecuteReq {
|
||||
|
||||
private List<SqlVariable> sqlVariables;
|
||||
|
||||
private Integer limit = 1000;
|
||||
|
||||
public String getSql() {
|
||||
if (StringUtils.isNotBlank(sql) && sql.endsWith(";")) {
|
||||
sql = sql.substring(0, sql.length() - 1);
|
||||
}
|
||||
return String.format(LIMIT_WRAPPER, sql);
|
||||
return String.format(LIMIT_WRAPPER, sql, limit);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ClassResp {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long domainId;
|
||||
private String domainName;
|
||||
private Long dataSetId;
|
||||
|
||||
private String name;
|
||||
private String bizName;
|
||||
private String description;
|
||||
|
||||
private String fullPath;
|
||||
|
||||
/**
|
||||
* 分类状态
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* METRIC、DIMENSION、TAG
|
||||
*/
|
||||
private String type;
|
||||
private List<Long> itemIds;
|
||||
|
||||
private Date createdAt;
|
||||
private String createdBy;
|
||||
private Date updatedAt;
|
||||
private String updatedBy;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user