
from model_data_api.handler.Base_Handler import BaseHandler
from model_data_api.views import *
from utils.tools import *
from utils import JsonUtil
app = app()
@app.route('/api/login')
class UserLoginHandler(BaseHandler):
    def get(self, *args, **kwargs):
        self.write("UserstHandler")

    def post(self,*args,**kwargs):

        username = self.get_argument('username',default=None)
        self.write(JsonUtil.build_json_data(code=JsonUtil.Constants.Code_Success,
                                            msg=JsonUtil.Constants.Msg_Success,
                                            result={'username':username}
                                            ))
        self.flush()
        self.finish()