index.js 545 Bytes
'use strict';
const api = global.yoho.API;



/**
 *  获取用户信息
 *  doc: http://git.yoho.cn/yoho-documents/api-interfaces/blob/master/个人中心/addUserprofile.md
 *  @param uid 用户id
 *  @return
 */
exports.queryProfile = (uid) => {
    let params = {
        method: 'app.passport.profile',
        uid
    };

    let options = {
        cache: true
    };

    return api.get('', params, options);
};

exports.addressTextData = (uid) => {
    return api.get('', {
        method: 'app.address.get',
        uid: uid
    });
};