2026-04-08 11:17:08 +07:00
|
|
|
package ru.soune.nocopy.adminpanel.dto;
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
2026-05-07 15:24:25 +07:00
|
|
|
import java.util.Map;
|
|
|
|
|
|
2026-04-08 11:17:08 +07:00
|
|
|
@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;
|
|
|
|
|
|
2026-05-12 12:24:39 +07:00
|
|
|
@JsonProperty("new_password")
|
|
|
|
|
private String newPassword;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("old_password")
|
|
|
|
|
private String oldPassword;
|
|
|
|
|
|
2026-04-08 11:17:08 +07:00
|
|
|
@JsonProperty("is_super_admin")
|
|
|
|
|
private Boolean isSuperAdmin;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("is_active")
|
|
|
|
|
private Boolean isActive;
|
2026-05-07 15:24:25 +07:00
|
|
|
|
2026-05-20 12:45:24 +07:00
|
|
|
@JsonProperty("change_password")
|
|
|
|
|
private Boolean changePassword;
|
|
|
|
|
|
2026-05-07 15:24:25 +07:00
|
|
|
@JsonProperty("permissions")
|
|
|
|
|
private Map<String, Integer> permissions;
|
|
|
|
|
|
2026-04-08 11:17:08 +07:00
|
|
|
}
|