You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
740 B
28 lines
740 B
|
4 years ago
|
"use strict";
|
||
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
|
exports.request = exports.URL = exports.Params = void 0;
|
||
|
|
var util_1 = require("../../../utils/util");
|
||
|
|
var Params = /** @class */ (function () {
|
||
|
|
function Params() {
|
||
|
|
}
|
||
|
|
return Params;
|
||
|
|
}());
|
||
|
|
exports.Params = Params;
|
||
|
|
exports.URL = '/test/user/detail2';
|
||
|
|
/**
|
||
|
|
* @desc get方法传参,类接收,requestparam注解
|
||
|
|
*/
|
||
|
|
function request(params, options) {
|
||
|
|
var url = '/test/user/detail2';
|
||
|
|
var fetchOption = Object.assign({
|
||
|
|
url: url,
|
||
|
|
method: 'GET',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json',
|
||
|
|
},
|
||
|
|
params: params,
|
||
|
|
}, options);
|
||
|
|
return util_1.fetch(fetchOption);
|
||
|
|
}
|
||
|
|
exports.request = request;
|