import BaseStore from '@src/stores/base'; export default class ReadyStore extends BaseStore { getReadyRead() { return this.apiGet('/setting/ready_read'); } setReadyRead(params) { return this.apiPut('/setting/ready_read', params); } allCategory(params) { return this.apiGet('/ready/category/all', params); } editCategory(params) { return this.apiPut('/ready/category/edit', params); } deleteCategory(params) { return this.apiDel('/ready/category/delete', params); } listArticle(params) { return this.apiGet('/ready/article/list', params); } addArticle(params) { return this.apiPost('/ready/article/add', params); } editArticle(params) { return this.apiPut('/ready/article/edit', params); } delArticle(params) { return this.apiDel('/ready/article/delete', params); } getArticle(params) { return this.apiGet('/ready/article/detail', params); } allArea(params) { return this.apiGet('/ready/area/all', params); } listRoom(params) { return this.apiGet('/ready/room/list', params); } addRoom(params) { return this.apiPost('/ready/room/add', params); } editRoom(params) { return this.apiPut('/ready/room/edit', params); } delRoom(params) { return this.apiDel('/ready/room/delete', params); } getRoom(params) { return this.apiGet('/ready/room/detail', params); } listRead(params) { return this.apiGet('/ready/read/list', params); } addRead(params) { return this.apiPost('/ready/read/add', params); } editRead(params) { return this.apiPut('/ready/read/edit', params); } delRead(params) { return this.apiDel('/ready/read/delete', params); } getRead(params) { return this.apiGet('/ready/read/detail', params); } listData(params) { return this.apiGet('/ready/data/list', params); } addData(params) { return this.apiPost('/ready/data/add', params); } editData(params) { return this.apiPut('/ready/data/edit', params); } delData(params) { return this.apiDel('/ready/data/delete', params); } getData(params) { return this.apiGet('/ready/data/detail', params); } } export const Ready = new ReadyStore({ key: 'ready' });