package com.cool.store.dto.store;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

import java.util.List;

/**
 * @Author suzhuhong
 * @Date 2025/7/22 15:04
 * @Version 1.0
 */
@Data
public class StoreAreaDTO {
    private String storeCode;
    private String storeId;
    private String storeName;
    /**
     * 门店所属区域的全部节点信息
     */
    private String regionPath;

    /**
     * 门店挂靠的区域Id
     */
    private String areaId;

    /**
     * 门店的挂挂靠的父节点区域ID
     */
    private List<String> areaIdList;

    /**
     * 所属区域id
     */
    private Long regionId;

    private String storeStatus;


    public List<String> getAreaIdList(){
        return StrUtil.splitTrim(regionPath,"/");
    }



}

