/** 家长与孩子身份关系（与 xuexiaole-mobile-v 一致） */
export const PARENT_TYPE_FATHER = 1;
export const PARENT_TYPE_MOTHER = 2;
export const PARENT_TYPE_GRANDFATHER = 3;
export const PARENT_TYPE_GRANDMOTHER = 4;
export const PARENT_TYPE_GRANDFATHER2 = 5;
export const PARENT_TYPE_GRANDMOTHER2 = 6;
export const PARENT_TYPE_TEACHER = 7;
export const PARENT_TYPE_OTHER = 8;

const OSS_BASE = 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/bindDevice';

export interface ParentIdentityOption {
    id: number;
    name: string;
    icon: string;
}

export const PARENT_IDENTITY_LIST: ParentIdentityOption[] = [
    { name: '爸爸', icon: `${OSS_BASE}/baba.png`, id: PARENT_TYPE_FATHER },
    { name: '妈妈', icon: `${OSS_BASE}/mama.png`, id: PARENT_TYPE_MOTHER },
    { name: '爷爷', icon: `${OSS_BASE}/yeye.png`, id: PARENT_TYPE_GRANDFATHER },
    { name: '奶奶', icon: `${OSS_BASE}/nainai.png`, id: PARENT_TYPE_GRANDMOTHER },
    { name: '外公', icon: `${OSS_BASE}/wg.png`, id: PARENT_TYPE_GRANDFATHER2 },
    { name: '外婆', icon: `${OSS_BASE}/waipo.png`, id: PARENT_TYPE_GRANDMOTHER2 },
    { name: '导学师', icon: `${OSS_BASE}/qita.png`, id: PARENT_TYPE_TEACHER },
    { name: '其他', icon: `${OSS_BASE}/qita.png`, id: PARENT_TYPE_OTHER },
];

export const PARENT_TYPE_MAP: Record<number, string> = {
    [PARENT_TYPE_FATHER]: '爸爸',
    [PARENT_TYPE_MOTHER]: '妈妈',
    [PARENT_TYPE_GRANDFATHER]: '爷爷',
    [PARENT_TYPE_GRANDMOTHER]: '奶奶',
    [PARENT_TYPE_GRANDFATHER2]: '外公',
    [PARENT_TYPE_GRANDMOTHER2]: '外婆',
    [PARENT_TYPE_TEACHER]: '导学师',
    [PARENT_TYPE_OTHER]: '其他',
};
