package org.jeecg.modules.app.dto;

import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "跨企业印章授权DTO")
public class ExternalAuthRequestDTO {
    // 授权企业ID
    private String orgId;

    // 操作人ID
    private String transactorPsnId;

    // 授权组织信息
    private AuthorizedOrgInfoDTO authorizedOrgInfo;

    // 印章ID集合
    private List<String> sealIds;

    // 长期有效
    private Boolean longTermEffective;


    @Data
    public static class AuthorizedOrgInfoDTO {
        // 组织名称
        private String orgName;

        // 组织证件号
        @SerializedName("orgIDCardNum")
        private String orgIdCardNum;
    }
}
