#!/usr/bin/python
# coding:utf-8
import sys
import util

reload(sys)
sys.setdefaultencoding('utf-8')


# 协议名常量 AccountLogin -> PAccountLogin
def proto_name_msg(mess_name):
    return 'P' + mess_name


# 协议名常量 AccountLogin -> ACCOUNT_LOGIN
def proto_name_msg2(mess_name):
    return util.camel_to_underline(mess_name).upper()

#!/usr/bin/python
# coding:utf-8
import sys
import util

reload(sys)
sys.setdefaultencoding('utf-8')


# 协议名常量 AccountLogin -> PAccountLogin
def proto_name_msg(mess_name):
    return 'P' + mess_name


# 协议名常量 AccountLogin -> ACCOUNT_LOGIN
def proto_name_msg2(mess_name):
    return util.camel_to_underline(mess_name).upper()

#!/usr/bin/python # coding:utf-8 # 协议名常量 AccountLogin -> PAccountLogin # 协议名常量 AccountLogin -> ACCOUNT_LOGIN