import { post, get } from '@/utils/request'

// 投资组合列表
// 查询投资组合列表
export const getPortfolio = (params) => post('/admin/portfolio/queryPortfolioList', params)
// 查询投资组合列表详情
export const getPortfolioDetail = (params) => get('/app/portfolio/queryPortfolioDetail', params)
// 查询菁英操盘
// export const queryPortfolioList = (params) => post('/app/portfolio/queryPortfolioListForApp', params)
// 保存投资组合
export const saveCombination = (params) => post('/admin/portfolio/savePortfolio', params)
// 投资组合收益曲线(图表)
export const getPortfolioHistory = (params) => post('/app/portfolio/queryHistoryProfitRate', params)
// 投资组合持仓数据
export const getPositionHistory = (params) => get('/app/portfolio/queryPortfolioHold', params)
// 查询投资组合委托
export const getEntrustHistory = (params) => get('/app/portfolio/queryPortfolioOrder', params)
// 查询投资组合成交
export const getPortfolioTrade = (params) => post('/app/portfolio/queryPortfolioTrade', params)
// 投资组合调仓
export const createPortfolioOrder = (params) => post('/admin/portfolio/savePortfolioOrder', params)
// 最大可买/卖查询
export const getTradeMaxNum = (params) => post('/admin/portfolio/queryTradeMaxNum', params)
// 投资组合撤单
export const createPortfolioCancel = (params) => get('/admin/portfolio/cancelPortfolioOrder', params)
// 查询金证统一收费平台提拥方案代码
// export const queryPlanCode = (params) => post('/admin/portfolio/queryPlanCode', params)

// 股票行情
// 查询股票列表(股票键盘精灵)
export const querySuggestStock = (params) => post('/app/basicHq/querySuggestStock', params)
// 查询国债逆回购股票
// export const queryBorrowStock = (params) => post('/app/basicHq/queryBuyBackStock', params)
// 查询股票基本信息
export const queryStockHq = (params) => post('/app/basicHq/queryStockHq', params)
// 查询所有投资组合成交(调仓记录)
// export const getAllPortfolio = (params) => post('/admin/portfolio/queryAllPortfolioTrade', params)

// 获取系统配置
// export const queryConfig = (params) => get('/app/system/queryConfig', params)

// 修改投资组合状态接口
// export function updatePortfolioStatus(data) {}

// 更新投资组合状态
export const updateStatus = (params) => post('/admin/portfolio/updateStatus', params)
