agent allow store + update + delete

This commit is contained in:
xiaomlove
2021-04-16 19:04:01 +08:00
parent dc7aa33036
commit d734788363
10 changed files with 240 additions and 150 deletions
+14 -1
View File
@@ -2,10 +2,23 @@ import axios from "./axios";
const baseUrl = 'http://nexus-php8.tinyhd.net/api/';
const api = {
listAllowAgent: (params = {}) => {
return axios.get(baseUrl + 'agent-allow', {params: params});
}
},
storeAllowAgent: (params = {}) => {
return axios.post(baseUrl + 'agent-allow', params);
},
updateAllowAgent: (id, params = {}) => {
return axios.put(baseUrl + 'agent-allow/' + id, params);
},
getAllowAgent: (id) => {
return axios.get(baseUrl + 'agent-allow/' + id);
},
deleteAllowAgent: (id) => {
return axios.delete(baseUrl + 'agent-allow/' + id);
},
}
export default api