hi-ucs/front/src/api/file.js

75 lines
1.8 KiB
Vue
Raw Normal View History

2022-06-14 09:32:49 +08:00
/*
* @Author: hisense.wuhongjian
* @Date: 2022-04-20 17:16:35
2022-06-19 17:33:12 +08:00
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-19 17:32:12
2022-06-14 09:32:49 +08:00
* @Description: 告诉大家这是什么
*/
import request from '@/utils/request'
import axios from 'axios'
import store from '@/store'
const config = {
headers: {
token: store.getters['user/accessToken'],
'Content-Type': 'multipart/form-data',
},
}
const config2 = {
headers: {
'Content-Type': 'application/json; charset-utf-8',
},
}
export function getDevelopmentFile(params) {
return request({
url: '/developmentGuide/getDevelopmentFile',
method: 'get',
params,
})
}
export function updateDevelopmentFile(params) {
return axios.post(
window.SITE_CONFIG.apiURL + '/developmentGuide/uploadDevelopmentFile',
params,
config
)
}
export function test() {
return axios.post(
'http://15.72.158.81/zyjk/ZywMessage.asmx/ZywMessagePort',
config2
)
}
export function correct(params) {
return axios.post('http://15.72.183.90:7008/correct', params, config2)
}
export function paddleocr(params) {
return axios.post('http://15.72.183.90:7008/paddleocr', params, config2)
}
2022-06-19 17:14:38 +08:00
// 能力云图-数据资源
export function count() {
return axios.post(
2022-06-19 17:56:21 +08:00
'http://10.134.135.24:30058/share-portal/platform/index/abilityMarket/count',
2022-06-19 17:14:38 +08:00
config2
)
}
// 能力云图-数据资源-总数据数
export function getRecord(params) {
return axios.get(
'http://10.134.135.24:30090/api/share-portal/platform/catalogue/query?serviceName=' +
2022-06-19 17:56:21 +08:00
params.serviceName +
'&orderField=' +
params.orderField +
'&orderType=' +
params.orderType +
'&pageNum=' +
params.pageNum +
'&pageSize=' +
params.pageSize +
'&serviceType=' +
params.serviceType,
2022-06-19 17:14:38 +08:00
config2
)
}