# coding:utf-8
from ActionBase import ActionBase
from ..models.UserDao import UserDao


class UserQueryAction(ActionBase):
    def __init__(self):
        ActionBase.__init__(self)

    def doGet(self):
        strId = ActionBase.checkArgs(self, 'user_id', '', True)
        arrUser = UserDao.queryUser(strId)

        return {
            'code': 0,
            'desc': 'ok',
            'result': arrUser
        }
