resource-api.js
947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import Api from './api';
class ResourceApi extends Api {
constructor() {
super();
}
list() {
return this._post('/ufoPlatform/resource/getResources');
}
info(id) {
return this._post('/ufoPlatform/resource/getResourceInfo', {
id
});
}
editResource(data) {
return this._post('/ufoPlatform/resource/editResourceContentData', data);
}
editGoodsPool(data) {
return this._post('/ufoPlatform/resource/batchEditResourceGoodsPool', data, true);
}
addResourceListItem(data) { // 添加资源位列表中的数据
return this._post('/ufoPlatform/resource/addOrUpdateResource', data);
}
editResourceListItem(data) {// 编辑资源位列表中的某条数据
return this._post('/ufoPlatform/resource/addOrUpdateResource', data);
}
addOrUpdateResourceDetail(data) {
return this._post('/ufoPlatform/resource/addOrUpdateResourceDeatil', data, true);
}
}
export default ResourceApi;