user.js
333 Bytes
'use strict';
const api = global.yoho.API;
class UserModel extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
profile(uid) {
let param = {
uid: uid,
method: 'app.passport.profile'
};
return api.get('', param);
}
}
module.exports = UserModel;