package com.cpop.oam.business.bo;

import com.cpop.system.business.bo.StoreBo;
import com.cpop.system.business.bo.SyncBrandAndStoreBo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.sql.Date;

/**
 * @author DB
 * @version 1.0.0
 * @since 2024-01-16 11:35
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "CloudUnionCallbackBo对象", description = "云回调统一入参")
public class CloudUnionCallbackBo {

    /**
     * 回调枚举(DATA_IMPORT_CALLBACK:数据导入回调)
     */
    @NotBlank(message = "回调枚举不能为空")
    @ApiModelProperty(value = "回调枚举(DATA_IMPORT_CALLBACK:数据导入回调;SYNC_BRAND_AND_STORE_CALLBACK:同步品牌与校区)",required = true)
    private String callbackEnum;

    /**
     * 主要id
     */
    @ApiModelProperty(value = "主要id")
    private String mainId;

    /**
     * 同步品牌与校区相关参数
     */
    @ApiModelProperty(value = "同步品牌与校区相关参数")
    private SyncBrandAndStore syncBrandAndStore;

    @Data
    @ApiModel("同步品牌与校区")
    public class SyncBrandAndStore {

        /**
         * 品牌
         */
        @ApiModelProperty(value = "品牌")
        private SyncBrandAndStoreBo.BrandInfo brandInfo;

        /**
         * 校区
         */
        @ApiModelProperty(value = "校区")
        private SyncBrandAndStoreBo.StoreInfo storeInfo;


        /**
         * 品牌信息
         */
        @Data
        public class BrandInfo {

            /**
             * 云品牌id
             */
            @ApiModelProperty(value = "云品牌id")
            private String brandCloudId;

            /**
             * 品牌名
             */
            @ApiModelProperty(value = "品牌名")
            private String brandName;
        }

        /**
         * 校区信息
         */
        @Data
        public class StoreInfo {

            /**
             * 云品牌id
             */
            @ApiModelProperty(value = "云校区id")
            private String storeCloudId;

            /**
             * 店铺/校区名
             */
            @ApiModelProperty(value = "店铺/校区名")
            private String storeName;

            /**
             * 店铺/校区地址
             */
            @ApiModelProperty(value = "店铺/校区地址")
            private String storeAddr;

            /**
             * 负责人
             */
            @ApiModelProperty(value = "负责人")
            private String personCharge;

            /**
             * 手机号
             */
            @ApiModelProperty(value = "手机号")
            private String phone;

            /**
             * 营业执照地址
             */
            @ApiModelProperty(value = "营业执照地址")
            private String licenseAddr;

            /**
             * 营业执照日期
             */
            @ApiModelProperty(value = "营业执照日期")
            private Date licenseDate;

            /**
             * 营业执照公司名
             */
            @ApiModelProperty(value = "营业执照公司名")
            private String licenseName;

            /**
             * 营业执照证书码
             */
            @ApiModelProperty(value = "营业执照证书码")
            private String licenseCode;

            /**
             * 营业执照法人名
             */
            @ApiModelProperty(value = "营业执照法人名")
            private String licenseUserName;

            /**
             * 营业执照图片地址
             */
            @ApiModelProperty(value = "营业执照图片地址")
            private String licensePicUrl;

            /**
             * 经度
             */
            @ApiModelProperty(value = "经度")
            private String longitude;

            /**
             * 纬度
             */
            @ApiModelProperty(value = "纬度")
            private String latitude;
        }
    }
}
