44 lines
888 B
Java
44 lines
888 B
Java
package ru.soune.nocopy.adminpanel.dto;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import lombok.Data;
|
|
|
|
import java.util.Map;
|
|
|
|
@Data
|
|
public class AdminUserRequest {
|
|
@JsonProperty("action")
|
|
private String action;
|
|
|
|
@JsonProperty("admin_id")
|
|
private Long adminId;
|
|
|
|
@JsonProperty("full_name")
|
|
private String fullName;
|
|
|
|
@JsonProperty("email")
|
|
private String email;
|
|
|
|
@JsonProperty("password")
|
|
private String password;
|
|
|
|
@JsonProperty("new_password")
|
|
private String newPassword;
|
|
|
|
@JsonProperty("old_password")
|
|
private String oldPassword;
|
|
|
|
@JsonProperty("is_super_admin")
|
|
private Boolean isSuperAdmin;
|
|
|
|
@JsonProperty("is_active")
|
|
private Boolean isActive;
|
|
|
|
@JsonProperty("change_password")
|
|
private Boolean changePassword;
|
|
|
|
@JsonProperty("permissions")
|
|
private Map<String, Integer> permissions;
|
|
|
|
}
|