mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 22:25:19 +00:00
Tag market support queryTagValue for value distribution info (#794)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.tencent.supersonic.headless.api.pojo;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
@Builder
|
||||
public class ValueDistribution {
|
||||
|
||||
private Object valueMap;
|
||||
|
||||
private Long totalCount;
|
||||
|
||||
private Long valueCount;
|
||||
|
||||
private Double ratio;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.request;
|
||||
|
||||
import com.tencent.supersonic.common.pojo.DateConf;
|
||||
import com.tencent.supersonic.headless.api.pojo.SchemaElementType;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class ItemValueReq {
|
||||
|
||||
private SchemaElementType type = SchemaElementType.TAG;
|
||||
|
||||
@NotNull
|
||||
private Long itemId;
|
||||
|
||||
private DateConf dateConf;
|
||||
|
||||
private Long limit = 10L;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.response;
|
||||
|
||||
import com.tencent.supersonic.headless.api.pojo.SchemaElementType;
|
||||
import com.tencent.supersonic.headless.api.pojo.ValueDistribution;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class ItemValueResp {
|
||||
private SchemaElementType type;
|
||||
private Long itemId;
|
||||
private String name;
|
||||
private String bizName;
|
||||
private List<ValueDistribution> valueDistributionList;
|
||||
}
|
||||
Reference in New Issue
Block a user