add && remove
This commit is contained in:
@@ -6,3 +6,11 @@ export function getList() {
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
export function getArticle() {
|
||||
return fetch({
|
||||
url: '/article/detail',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
|
9
src/api/remoteSearch.js
Normal file
9
src/api/remoteSearch.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { fetch } from 'utils/fetch';
|
||||
|
||||
export function userSearch(name) {
|
||||
return fetch({
|
||||
url: '/search/user',
|
||||
method: 'get',
|
||||
params: { name }
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user