初始化
This commit is contained in:
18
utils/service/index.js
Normal file
18
utils/service/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Request } from './http'
|
||||
|
||||
class RamRequest extends Request {
|
||||
get(url, data = {}) {
|
||||
return this._request(url, data, 'GET')
|
||||
}
|
||||
post(url, data = {}) {
|
||||
return this._request(url, data, 'POST')
|
||||
}
|
||||
put(url, data = {}) {
|
||||
return this._request(url, data, 'PUT')
|
||||
}
|
||||
delete(url, data = {}) {
|
||||
return this._request(url, data, 'DELETE')
|
||||
}
|
||||
}
|
||||
|
||||
export { RamRequest }
|
||||
Reference in New Issue
Block a user