#!/usr/bin/env python
# -*- coding: utf-8 -*-
from gm_types.user_hierarchy import EventType
from gm_types.gaia import USER_RIGHTS_LEVEL


# 事件加分
VALUE = {
    EventType.COMPLETEPORTRAIT: 10,
    EventType.BINDPHONE: 20,
    EventType.CREATEOPERATIONTOPIC: 50,
    EventType.CREATENONOPERATIONTOPIC: 30,
    EventType.DIARYCOMMENTED: 5,
    EventType.TOPICCOMMENTED: 5,
    EventType.OPERATIONDIARYBEEDEXCELENTFROMOTHER: 50,
    EventType.OPERATIONDIARYBEFINEFROMOTHER: 30,
    EventType.OPERATIONDIARYBEFINEFROMEX: -20,
    EventType.OPERATIONDIARYBEEDEXCELENTFROMFINE: 20,
    EventType.NONOPERATIONDIARYBEEXCELENTFROMOTHER: 30,
    EventType.NONOPERATIONDIARYBEEXCELENTFROMFINE: 20,
    EventType.NONOPERATIONDIARYBEFINEFROMEX: -20,
    EventType.NONOPERATIONDIARYBEFINEFROMOTHER: 10,
    EventType.DIARYCOMMENTED: 5,
    EventType.COMMENTTOPIC: 5,
    EventType.ANSWERRECOMMENDED: 30,
    EventType.TOPICISSPAM: -50,
    EventType.COMMENTISSPAM: -50,
    EventType.BUYSERVICE: 200,
}


LEVEL_START_VALUE = {
    USER_RIGHTS_LEVEL.V1: 0,
    USER_RIGHTS_LEVEL.V2: 30,
    USER_RIGHTS_LEVEL.V3: 200,
    USER_RIGHTS_LEVEL.V4: 500,
    USER_RIGHTS_LEVEL.V5: 2000,
    USER_RIGHTS_LEVEL.V6: 5000,
    USER_RIGHTS_LEVEL.V7: 10000
}