common.js
479 Bytes
const md5 = require('yoho-md5');
class Common extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
/**
* 资源位数据
* @param code
*/
resource(code) {
return this.get({
url: 'operations/api/v5/resource/get',
data: {
content_code: code,
platform: 'platform'
},
api: global.yoho.ServiceAPI
});
}
}
module.exports = Common;