123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import BaseStore from '@src/stores/base';
- export default class PreviewStore extends BaseStore {
- list(params) {
- return this.apiGet('/preview/list', params);
- }
- get(params) {
- return this.apiGet('/preview/detail', params);
- }
- add(params) {
- return this.apiPost('/preview/add', params);
- }
- edit(params) {
- return this.apiPut('/preview/edit', params);
- }
- del(params) {
- return this.apiDel('/preview/delete', params);
- }
- listAssign(params) {
- return this.apiGet('/preview/assign/list', params);
- }
- getAssign(params) {
- return this.apiGet('/preview/assign/detail', params);
- }
- addAssign(params) {
- return this.apiPost('/preview/assign/add', params);
- }
- editAssign(params) {
- return this.apiPut('/preview/assign/edit', params);
- }
- delAssign(params) {
- return this.apiDel('/preview/assign/delete', params);
- }
- }
- export const Preview = new PreviewStore({ key: 'preview' });
|