mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
[admin] agent allow&deny
This commit is contained in:
Vendored
+27
-5
@@ -7,22 +7,44 @@ const api = {
|
||||
logout: (params = {}) => {
|
||||
return axios.post('logout');
|
||||
},
|
||||
listAllowAgent: (params = {}) => {
|
||||
listAgentAllow: (params = {}) => {
|
||||
return axios.get('agent-allows', {params: params});
|
||||
},
|
||||
storeAllowAgent: (params = {}) => {
|
||||
listAllAgentAllow: (params = {}) => {
|
||||
return axios.get('all-agent-allows', {params: params});
|
||||
},
|
||||
storeAgentAllow: (params = {}) => {
|
||||
return axios.post('agent-allows', params);
|
||||
},
|
||||
updateAllowAgent: (id, params = {}) => {
|
||||
updateAgentAllow: (id, params = {}) => {
|
||||
return axios.put('agent-allows/' + id, params);
|
||||
},
|
||||
getAllowAgent: (id) => {
|
||||
getAgentAllow: (id) => {
|
||||
return axios.get('agent-allows/' + id);
|
||||
},
|
||||
deleteAllowAgent: (id) => {
|
||||
deleteAgentAllow: (id) => {
|
||||
return axios.delete('agent-allows/' + id);
|
||||
},
|
||||
|
||||
listAgentDeny: (params = {}) => {
|
||||
return axios.get('agent-denies', {params: params});
|
||||
},
|
||||
storeAgentDeny: (params = {}) => {
|
||||
return axios.post('agent-denies', params);
|
||||
},
|
||||
updateAgentDeny: (id, params = {}) => {
|
||||
return axios.put('agent-denies/' + id, params);
|
||||
},
|
||||
getAgentDeny: (id) => {
|
||||
return axios.get('agent-denies/' + id);
|
||||
},
|
||||
deleteAgentDeny: (id) => {
|
||||
return axios.delete('agent-denies/' + id);
|
||||
},
|
||||
checkAgent: (params = {}) => {
|
||||
return axios.post('agent-check', params);
|
||||
},
|
||||
|
||||
listUser: (params = {}) => {
|
||||
return axios.get('users', {params: params});
|
||||
},
|
||||
|
||||
Vendored
+2
@@ -40,6 +40,8 @@ export const pathMap = {
|
||||
account: '修改账户',
|
||||
'agent-allow': 'Agent allow',
|
||||
'agent-allow-form': 'Agent allow form',
|
||||
'agent-deny': 'Agent deny',
|
||||
'agent-deny-form': 'Agent deny form',
|
||||
'user': 'User',
|
||||
'user-form': 'User form',
|
||||
'user-detail': 'User detail',
|
||||
|
||||
Vendored
+1
-1
@@ -6,7 +6,7 @@ const useTable = () => {
|
||||
query: {
|
||||
page: 1,
|
||||
sort_field: 'id',
|
||||
sort_type: 'desc'
|
||||
sort_type: 'desc',
|
||||
},
|
||||
tableData: [],
|
||||
multipleSelection: [],
|
||||
|
||||
Reference in New Issue
Block a user