package com.usky.sas.service.dto.agbox;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.List;

/**
 * AG 接口 getPower 响应 - 实有力量分页
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class PowerVo {

    private PowerResult result;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class PowerResult {
        /** 实有力量列表 */
        private List<Power> powerList;
        /** 当前页数量 */
        private Long count;
        /** 总页数 */
        private Integer totalPage;
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Power {
        private String personCode;
        private String name;
        private Integer credentialType;
        private String credentialNo;
        /** 电话列表，依次为 phone1、phone2、phone3 */
        private List<String> phone;
        /** 实有力量分类编码（对应 sas_person.power_code） */
        private String powerCode;
        private String securityCardNo;
        private Integer securityDutiesCode;
        private String picId;
        private String updateTime;
        private String createTime;
        private String companyCode;
        private String origin;
        private String placeOfBirth;
        private Integer educationCode;
        private Integer maritalStatusCode;
        private String nationalityCode;
    }
}
