dm-web-react
Version:
The DM web client with React.
30 lines • 1.01 kB
JavaScript
import * as Cookies from "js-cookie";
import { DefineService } from "../../../../services/defineService";
import apiFetch from "./apiFetch";
var userId = Cookies.get("userId") || "0";
var apiUrl = DefineService.Instance.getApiUrl();
/**
* 获取内部评级列表
*/
export var getInternalRatingList = function () {
return apiFetch(apiUrl + "/bond-institution/rating/getInnerRateList?userid=" + userId, { method: "post" });
};
/**
* 获取投资建议列表
*/
export function getInvestmentAdviceList() {
return apiFetch(apiUrl + "/bond-institution/rating/getInvestSuggestList?userid=" + userId, { method: "post" });
}
/**
* 获取行业列表
* @param key 行业名关键字
*/
export function getIndustryList(key) {
var query = key ? "?induClassName=" + key : "";
return apiFetch(apiUrl + "/bond-institution/api/institution/indu/list" + query, {
headers: {
userId: userId,
},
});
}
//# sourceMappingURL=bondInstitution.js.map