123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- import BaseStore from '@src/stores/base';
- export default class SystemStore extends BaseStore {
- listManager(params) {
- return this.apiGet('/manager/list', params);
- }
- addManager(params) {
- return this.apiPost('/manager/add', params);
- }
- getManager(params) {
- return this.apiGet('/manager/detail', params);
- }
- putManager(params) {
- return this.apiPut('/manager/edit', params);
- }
- delManager(params) {
- return this.apiDel('/manager/delete', params);
- }
- getIndex() {
- return this.apiGet('/setting/index');
- }
- setIndex(params) {
- return this.apiPut('/setting/index', params);
- }
- getBase() {
- return this.apiGet('/setting/base');
- }
- setBase(params) {
- return this.apiPut('/setting/base', params);
- }
- getPlace() {
- return this.apiGet('/setting/place');
- }
- setPlace(params) {
- return this.apiPut('/setting/place', params);
- }
- getSentence() {
- return this.apiGet('/setting/sentence');
- }
- setSentence(params) {
- return this.apiPut('/setting/sentence', params);
- }
- getFilterTime() {
- return this.apiGet('/setting/filter_time');
- }
- setFilterTime(params) {
- return this.apiPut('/setting/filter_time', params);
- }
- getExercisePaperAuto() {
- return this.apiGet('/setting/exercise_paper_auto');
- }
- setExercisePaperAuto(params) {
- return this.apiPut('/setting/exercise_paper_auto', params);
- }
- getExerciseTime() {
- return this.apiGet('/setting/exercise_time');
- }
- setExerciseTime(params) {
- return this.apiPut('/setting/exercise_time', params);
- }
- getSentenceTime() {
- return this.apiGet('/setting/sentence_time');
- }
- setSentenceTime(params) {
- return this.apiPut('/setting/sentence_time', params);
- }
- getTextbookTime() {
- return this.apiGet('/setting/textbook_time');
- }
- setTextbookTime(params) {
- return this.apiPut('/setting/textbook_time', params);
- }
- getTextbookConfig() {
- return this.apiGet('/setting/textbook_config');
- }
- setTextbookConfig(params) {
- return this.apiPut('/setting/textbook_config', params);
- }
- getExaminationTime() {
- return this.apiGet('/setting/examination_time');
- }
- setExaminationTime(params) {
- return this.apiPut('/setting/examination_time', params);
- }
- getScoreSwitch() {
- return this.apiGet('/setting/score_switch');
- }
- setScoreSwitch(params) {
- return this.apiPut('/setting/score_switch', params);
- }
- getServiceVip() {
- return this.apiGet('/setting/service_vip');
- }
- setServiceVip(params) {
- return this.apiPut('/setting/service_vip', params);
- }
- getServiceTextbook() {
- return this.apiGet('/setting/service_textbook');
- }
- setServiceTextbook(params) {
- return this.apiPut('/setting/service_textbook', params);
- }
- getServiceQxCat() {
- return this.apiGet('/setting/service_qx_cat');
- }
- setServiceQxCat(params) {
- return this.apiPut('/setting/service_qx_cat', params);
- }
- getCourseIndex() {
- return this.apiGet('/setting/course_index');
- }
- setCourseIndex(params) {
- return this.apiPut('/setting/course_index', params);
- }
- getPromote() {
- return this.apiGet('/setting/promote');
- }
- setPromote(params) {
- return this.apiPut('/setting/promote', params);
- }
- getExperienceInfo() {
- return this.apiGet('/setting/experience_info');
- }
- setExperienceInfo(params) {
- return this.apiPut('/setting/experience_info', params);
- }
- getWechatInfo() {
- return this.apiGet('/setting/wechat_info');
- }
- setWechatInfo(params) {
- return this.apiPut('/setting/wechat_info', params);
- }
- getTips() {
- return this.apiGet('/setting/tips');
- }
- setTips(params) {
- return this.apiPut('/setting/tips', params);
- }
- getPrepareInfo() {
- return this.apiGet('/setting/prepare_info');
- }
- setPrepareInfo(params) {
- return this.apiPut('/setting/prepare_info', params);
- }
- getSentenceInfo() {
- return this.apiGet('/setting/sentence_info');
- }
- setSentenceInfo(params) {
- return this.apiPut('/setting/sentence_info', params);
- }
- allContract(params) {
- return this.apiGet('/setting/contract/all', params);
- }
- getContract(params) {
- return this.apiGet('/setting/contract/detail', params);
- }
- setContract(params) {
- return this.apiPut('/setting/contract/edit', params);
- }
- listRank(params) {
- return this.apiGet('/setting/rank/list', params);
- }
- addRank(params) {
- return this.apiPost('/setting/rank/add', params);
- }
- editRank(params) {
- return this.apiPut('/setting/rank/edit', params);
- }
- delRank(params) {
- return this.apiDel('/setting/rank/delete', params);
- }
- importRank(params) {
- return this.apiForm('/setting/rank/import', params);
- }
- listComment(params) {
- return this.apiGet('/setting/comment/list', params);
- }
- addComment(params) {
- return this.apiPost('/setting/comment/add', params);
- }
- editComment(params) {
- return this.apiPut('/setting/comment/edit', params);
- }
- orderComment(params) {
- return this.apiPut('/setting/comment/order', params);
- }
- delComment(params) {
- return this.apiDel('/setting/comment/delete', params);
- }
- listFAQ(params) {
- return this.apiGet('/setting/faq/list', params);
- }
- addFAQ(params) {
- return this.apiPost('/setting/faq/add', params);
- }
- editFAQ(params) {
- return this.apiPut('/setting/faq/edit', params);
- }
- orderFAQ(params) {
- return this.apiPut('/setting/faq/order', params);
- }
- delFAQ(params) {
- return this.apiDel('/setting/faq/delete', params);
- }
- listMessage(params) {
- return this.apiGet('/setting/message/list', params);
- }
- getMessage(params) {
- return this.apiGet('/setting/message/detail', params);
- }
- addMessage(params) {
- return this.apiPost('/setting/message/add', params);
- }
- editMessage(params) {
- return this.apiPut('/setting/message/edit', params);
- }
- delMessage(params) {
- return this.apiDel('/setting/message/delete', params);
- }
- listAd(params) {
- return this.apiGet('/setting/ad/list', params);
- }
- addAd(params) {
- return this.apiPost('/setting/ad/add', params);
- }
- editAd(params) {
- return this.apiPut('/setting/ad/edit', params);
- }
- delAd(params) {
- return this.apiDel('/setting/ad/delete', params);
- }
- getAd(params) {
- return this.apiGet('/setting/ad/detail', params);
- }
- uploadImage(file) {
- return this.apiForm('/common/upload/image', { file });
- }
- uploadVideo(file) {
- return this.apiForm('/common/upload/video', { file }, { time: 1 * 3600 * 1000 });
- }
- }
- export const System = new SystemStore({ key: 'system' });
|