lrf402788946 4 년 전
부모
커밋
a6cba45838
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      store/school.js

+ 11 - 0
store/school.js

@@ -5,6 +5,7 @@ import axios from 'axios';
 Vue.use(Vuex);
 Vue.use(Vuex);
 const api = {
 const api = {
   interface: `/api/train/school`,
   interface: `/api/train/school`,
+  nameListNotice: `/api/train/job`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -30,6 +31,16 @@ const actions = {
     const res = await this.$axios.$delete(`${api.interface}/${payload}`);
     const res = await this.$axios.$delete(`${api.interface}/${payload}`);
     return res;
     return res;
   },
   },
+  async getNoticeList({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.nameListNotice}`, { skip, limit, ...info });
+    return res;
+  },
+
+  async updateNoticeStatus({ commit }, { id, ...info }) {
+    const res = await this.$axios.$post(`${api.nameListNotice}/update/${id}`, info);
+    return res;
+  },
+
   async mergeRequest({ commit, dispatch }, { method, data }) {
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
     let toRequest = () => {
       let res = [];
       let res = [];