114 lines
2.4 KiB
TypeScript
114 lines
2.4 KiB
TypeScript
import request from './index'
|
|
|
|
interface LoginOrgParams {
|
|
orgid: string
|
|
userid: string
|
|
password: string
|
|
}
|
|
|
|
export function loginOrgApi(params: LoginOrgParams) {
|
|
return request.postForm('/login_org.jsp', params)
|
|
}
|
|
|
|
interface GetAutocompleteDataParams {
|
|
q: string
|
|
page: number
|
|
limit: number
|
|
viewname: string
|
|
field1: string
|
|
field2: string
|
|
userid?: string
|
|
}
|
|
|
|
export function getAutocompleteDataApi(params: GetAutocompleteDataParams) {
|
|
return request.postForm('/getAutocompleteData.jsp', params)
|
|
}
|
|
|
|
interface GetAutocompleteDataExParams {
|
|
q: string
|
|
page: number
|
|
limit: number
|
|
viewname: string
|
|
field1: string
|
|
field2: string
|
|
searchcondition: string
|
|
userid?: string
|
|
}
|
|
|
|
export function getAutocompleteDataExApi(params: GetAutocompleteDataExParams) {
|
|
return request.postForm('/getAutocompleteDataEx.jsp', params)
|
|
}
|
|
|
|
interface SaveobjtParams {
|
|
tables: string
|
|
insertValues: string
|
|
delValues: string
|
|
updateValues: string
|
|
keys: string
|
|
}
|
|
|
|
export function saveobjtApi(params: SaveobjtParams) {
|
|
return request.postForm('/saveobjt.jsp', params)
|
|
}
|
|
|
|
interface SearchdataParams {
|
|
viewname: string
|
|
searchcondition: string
|
|
orderfield: string
|
|
}
|
|
export function searchdataApi(params: SearchdataParams) {
|
|
return request.postForm('/searchdata.jsp', params)
|
|
}
|
|
|
|
interface SearchdatapageindexParams {
|
|
viewname: string
|
|
searchcondition: string
|
|
userid: string
|
|
orderfield: string
|
|
page: number
|
|
rows: number
|
|
}
|
|
|
|
export function searchdatapageindexApi(params: SearchdatapageindexParams) {
|
|
return request.postForm(`/searchdatapageindex.jsp`, params)
|
|
}
|
|
interface DelSubRecordParams {
|
|
id: string
|
|
module: string
|
|
bucketName: string
|
|
}
|
|
export function delSubRecordApi(params: DelSubRecordParams) {
|
|
return request.postForm('/DelSubRecord.jsp', params)
|
|
}
|
|
|
|
interface GetaliyunkeyParams {
|
|
orgid: string
|
|
bucket: string
|
|
}
|
|
|
|
export function getaliyunkeyApi(params: GetaliyunkeyParams) {
|
|
return request.postForm(`/getaliyunkey.jsp`, params)
|
|
}
|
|
|
|
interface AliyunpluploadParams {
|
|
despathfile: string
|
|
myfilename: string
|
|
size: string
|
|
tablename: string
|
|
sid: string
|
|
mx_moduleid: string
|
|
mx_cate_id: string
|
|
}
|
|
export function aliyunpluploadApi(params: AliyunpluploadParams) {
|
|
return request.postForm(`/aliyunplupload.jsp`, params)
|
|
}
|
|
|
|
interface LoaddatabysqlParams {
|
|
sql: string
|
|
orderfield: string
|
|
soption: string
|
|
}
|
|
export function loaddatabysqlApi(params: LoaddatabysqlParams) {
|
|
return request.postForm('/loaddatabysql.jsp', params)
|
|
}
|