index-api.js
534 Bytes
/**
* Created by TaoHuang on 2016/6/21.
*/
'use strict';
const config = global.yoho.config;
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
/**
* 资源码找资源
*/
getResourceAsync(resourceCode) {
return this.get({
url: '/operations/api/v5/resource/get',
data: {
content_code: resourceCode
},
param: config.apiCache,
api: global.yoho.ServiceAPI
});
}
};