package com.starry.admin.modules.weichat.entity;

import com.starry.admin.modules.clerk.module.entity.PlayClerkCommodityEntity;
import com.starry.common.utils.ConvertUtil;
import java.math.BigDecimal;
import java.util.List;
import lombok.Data;

/**
 * 店员商品树状数据
 *
 * @author admin
 */
@Data
public class PlayClerkCommodityTreeData {

    private String commodityType;

    private List<ClerkCommodityInfo> value;

    public PlayClerkCommodityTreeData(String commodityType, List<PlayClerkCommodityEntity> value) {
        this.commodityType = commodityType;
        this.value = ConvertUtil.entityToVoList(value, ClerkCommodityInfo.class);
    }

    @Data
    public static class ClerkCommodityInfo {

        private String id;

        private String commodityName;

        private BigDecimal commodityPrice;

        private String serviceDuration;

    }
}
