user-model.js 396 Bytes
/**
 * Created by TaoHuang on 2017/4/17.
 */

'use strict';

const Context = require('../common/context');
const Api = require('../common/api');
const apiDomain = global.yoho.apiDomain;

class loginModel extends Context {
    login(username, password) {
        return this.instance(Api).post(apiDomain.auth.login, JSON.stringify([username, password, 2]));
    }
}


module.exports = loginModel;