'use strict'; class userModel extends global.yoho.BaseModel { constructor(ctx) { super(ctx); } /** * 获取用户信息 * doc: http://git.yoho.cn/yoho-documents/api-interfaces/blob/master/个人中心/addUserprofile.md * @param uid 用户id * @return */ queryProfile(uid) { let params = { method: 'app.passport.profile', uid }; let options = { cache: true }; return this.get({data: params, param: options}); } addressTextData(uid) { return this.get({data: { method: 'app.address.get', uid: uid }}); } } module.exports = userModel;