|
1234567891011121314151617181920212223242526272829303132333435 |
- const { request } = require("../request/index");
- /**
- * get
- */
- export const get = function (url, params, showLoading = true) {
- return request({
- url: url,
- method: "GET",
- data: params,
- showLoading
- })
- }
-
- /**
- * post
- */
- export const post = function (url, params, showLoading = true) {
- return request({
- url: url,
- method: "POST",
- data: params,
- showLoading
- })
- }
-
- /**
- * put
- */
- export const put = function (url, params) {
- return request({
- url: url,
- method: "PUT",
- data: params
- })
- }
|