/** * 激活点击统计 models * @author: wsl<shuiling.wang@yoho.cn> * @date: 2017/03/21 */ 'use strict'; const unionApi = new global.yoho.ApiBase(global.yoho.config.domains.unionApi, { name: 'union', cache: global.yoho.cache, useCache: false }); const canLogin = (uid) => { return unionApi.post('/union/ActivateUnionRest/canlogin', { uid: uid }).then(result => { if (result && result.code === 200) { return result.data.canLogin; } else { return Promise.reject(result); } }); }; const getList = (params) => { return unionApi.post('/union/ActivateUnionRest/queryYHActivateDeviceId', params).then(result => { if (result && result.code === 200) { return result; } else { return Promise.reject(result); } }); }; module.exports = { canLogin, getList };