194 lines
4.2 KiB
TypeScript
194 lines
4.2 KiB
TypeScript
import request from './index'
|
|
|
|
interface LoginParams {
|
|
orgid: string
|
|
userid: string
|
|
password: string
|
|
}
|
|
|
|
export function loginApi(params: LoginParams) {
|
|
return request.postForm('/login.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: any
|
|
insertValues: any
|
|
delValues: any
|
|
updateValues: any
|
|
keys: any
|
|
}
|
|
|
|
export function saveobjtApi(params: SaveobjtParams) {
|
|
return request.postForm('/saveobjt.jsp', params)
|
|
}
|
|
|
|
interface SavesubtableParams {
|
|
subtable: any
|
|
subinsertvalue: any
|
|
subdelvalue: any
|
|
subupdatevalue: any
|
|
father: any
|
|
}
|
|
export function savesubtableApi(params: SavesubtableParams) {
|
|
return request.postForm('/savesubtable.jsp', params)
|
|
}
|
|
|
|
interface SearchdataParams {
|
|
viewname: string
|
|
searchcondition: string
|
|
orderfield: string
|
|
limit?: number
|
|
}
|
|
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)
|
|
}
|
|
interface GetfieldvaluebyidParams {
|
|
viewname: string
|
|
desfield: string
|
|
idfield: string
|
|
idvalue: string
|
|
}
|
|
export function getfieldvaluebyidApi(params: GetfieldvaluebyidParams) {
|
|
return request.postForm('/getfieldvaluebyid.jsp', params)
|
|
}
|
|
|
|
interface GetdefaultdataParams {
|
|
viewname: string
|
|
}
|
|
export function getdefaultdataApi(params: GetdefaultdataParams) {
|
|
return request.postForm('/getdefaultdata.jsp', params)
|
|
}
|
|
|
|
interface GetautoidParams {
|
|
moduleid: string
|
|
userid: string
|
|
}
|
|
export function getautoidApi(params: GetautoidParams) {
|
|
return request.postForm('/getautoid.jsp', params)
|
|
}
|
|
interface LoaddataParams {
|
|
soption: string
|
|
orderfield: string
|
|
viewname: string
|
|
searchcondition: string
|
|
}
|
|
export function loaddataApi(params: LoaddataParams) {
|
|
return request.postForm('/loaddata.jsp', params)
|
|
}
|
|
|
|
interface SaveLogParams {
|
|
mainTable: string
|
|
strMainUpdate: string
|
|
strMainDelete: string
|
|
subTable: string
|
|
strSubUpdate: string
|
|
strSubDelete: string
|
|
recordID: string
|
|
subID: string
|
|
Modifyb: string
|
|
Modifyh: string
|
|
}
|
|
export function saveLogApi(params: SaveLogParams) {
|
|
return request.postForm('/saveLog.jsp', params)
|
|
}
|
|
|
|
interface LoaddataAttachParams {
|
|
soption: string
|
|
orderfield: string
|
|
viewname: string
|
|
searchcondition: string
|
|
}
|
|
|
|
export function loaddataAttachApi(params: LoaddataAttachParams) {
|
|
return request.postForm('/loaddata_attach.jsp', params)
|
|
}
|
|
|
|
interface DelObjParams {
|
|
id: string
|
|
module: string
|
|
}
|
|
export function delObjApi(params: DelObjParams) {
|
|
return request.postForm('/DelObj.jsp', params)
|
|
}
|