package com.ga.core.vo.commission;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 공동계약 역할 (JOINT_ROLE 그룹, V100)
 * joint_contract.role 에서 사용.
 * 계약별 share_rate 합 = 1 (Service 검증).
 */
public enum JointRole {
    LEAD("주설계사"),
    SUB("공동설계사");

    private final String label;

    JointRole(String label) {
        this.label = label;
    }

    @JsonValue
    public String getCode() {
        return this.name();
    }

    public String getLabel() {
        return label;
    }
}
