package com.bcxin.tenant.domain.services.commands.organizations;

import lombok.Getter;

/**
 * @author linqinglin
 * @date 2021/12/09 0009 13:48
 */
@Getter
public class ItemValueCommandItem {


    private final String code;
    private final String name;

    public ItemValueCommandItem(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static ItemValueCommandItem create(String code, String name) {
        return new ItemValueCommandItem(code, name);
    }

    private static final ItemValueCommandItem emptyValue = new ItemValueCommandItem(null,null);
    public static ItemValueCommandItem createEmpty() {
        return emptyValue;
    }
}
