package com.xisc.pm.infra.enums;

/**
 * 粗切位置类型
 * @author jun.zeng
 *
 */
public enum CutPositionType {

    M("M","移动侧"),
    F("F","固定侧") ;
    
    private final String code;
    private final String desc;

    // 私有构造函数
    CutPositionType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    // Getter 方法
    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    // 根据code查找枚举项（可选）
    public static CutPositionType getByCode(String code) {
        for (CutPositionType type : CutPositionType.values()) {
            if (type.getCode().equals(code)) {
                return type;
            }
        }
        return null;
    }
}
