common.js
315 Bytes
import api from '../utils/api';
export default {
resource(code) {
return api.get({
url: '/resources',
data: {
method: 'ufo.resource.get',
content_code: code
}
});
},
search(params) {
return api.get({
data: Object.assign({
method: 'ufo.product.search.list'
}, params)
})
}
}