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.
31 lines
869 B
31 lines
869 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.request = exports.URL = exports.PathParams = void 0;
|
|
var util_1 = require("../../../utils/util");
|
|
var PathParams = /** @class */ (function () {
|
|
function PathParams() {
|
|
/** fileName */
|
|
this.fileName = '';
|
|
}
|
|
return PathParams;
|
|
}());
|
|
exports.PathParams = PathParams;
|
|
exports.URL = '/api/image/get/{fileName}';
|
|
/**
|
|
* @desc 获取文件
|
|
*/
|
|
function request(pathParams, options) {
|
|
var url = '/api/image/get/{fileName}';
|
|
for (var key in pathParams) {
|
|
url.replace('{' + key + '}', pathParams[key]);
|
|
}
|
|
var fetchOption = Object.assign({
|
|
url: url,
|
|
method: 'GET',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
}, options);
|
|
return util_1.fetch(fetchOption);
|
|
}
|
|
exports.request = request;
|
|
|