@@ -0,0 +1,20 @@
|
||||
package ru.soune.nocopy.dto.statistic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TariffStatisticFullResponse {
|
||||
|
||||
@JsonProperty("tariffs")
|
||||
private List<TariffStatisticResponse> tariffs;
|
||||
|
||||
@JsonProperty("total_users")
|
||||
private Long totalUsers;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package ru.soune.nocopy.dto.statistic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class TariffStatisticRequest {
|
||||
|
||||
@JsonProperty("company_only")
|
||||
private Boolean companyOnly = false;
|
||||
|
||||
@JsonProperty("active_only")
|
||||
private Boolean activeOnly = true;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package ru.soune.nocopy.dto.statistic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TariffStatisticResponse {
|
||||
|
||||
@JsonProperty("tariff_name")
|
||||
private String tariffName;
|
||||
|
||||
@JsonProperty("user_count")
|
||||
private Long userCount;
|
||||
|
||||
@JsonProperty("usage_percent")
|
||||
private Double usagePercent;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package ru.soune.nocopy.dto.statistic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UserFilesStatisticRequest {
|
||||
@JsonProperty("top")
|
||||
int topUsers;
|
||||
|
||||
@JsonProperty("type")
|
||||
String fileMimeType;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package ru.soune.nocopy.dto.statistic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UserFilesStatisticResponse {
|
||||
@JsonProperty("full_name")
|
||||
private final String userName;
|
||||
|
||||
@JsonProperty("user_id")
|
||||
private final long userId;
|
||||
|
||||
@JsonProperty("count")
|
||||
private final int countFiles;
|
||||
|
||||
@JsonProperty("files_size")
|
||||
private final long fileSize;
|
||||
}
|
||||
Reference in New Issue
Block a user