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