Files
fe_service_ebtp_frontend/src/utils/DownloadUtils.ts

27 lines
716 B
TypeScript
Raw Normal View History

2020-12-23 11:14:35 +08:00
/*
* @Author: liqiang
* @Date: 2020-12-14 10:13:59
2022-03-10 14:24:13 +08:00
* @LastEditTime: 2021-03-09 18:16:03
2020-12-23 11:14:35 +08:00
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \ebtp-cloud-frontend\src\utils\DownloadUtils.ts
*/
2022-03-10 14:24:13 +08:00
import { getUserToken } from "./session";
2021-01-16 11:29:42 +08:00
/**
* (bid)
*/
export const downloadAttachmentPath = '/api/core-service-ebtp-updownload/v1/attachment/download/bid/';
/**
* (oid)
*/
export const downloadAttachmentPathOId = '/api/core-service-ebtp-updownload/v1/attachment/download/oid/';
2022-03-10 14:24:13 +08:00
const authorization = '?Authorization';
2021-01-16 11:29:42 +08:00
/**
2022-03-10 14:24:13 +08:00
* token
2021-01-16 11:29:42 +08:00
*/
2022-03-10 14:24:13 +08:00
export function getDownloadToken () {
return authorization + '=' + getUserToken();
2021-01-16 11:29:42 +08:00
}