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' });