user-model.js
352 Bytes
/**
* Created by TaoHuang on 2017/4/17.
*/
'use strict';
const request = require('./http-utils');
const config = require('../common/config');
module.exports.login = (ctx, username, password) => {
return request.post(
config.apiDomain.auth + '/service/account/v1/Profile/login',
JSON.stringify([username, password, 1])
);
};