forked from mfay/IOReportMgt
parent
1fc066b64a
commit
0dc428dc16
@ -0,0 +1,33 @@ |
||||
import { fetch } from '../../../utils/util'; |
||||
|
||||
export class Params { |
||||
/** ID */ |
||||
recordId?: number; |
||||
} |
||||
|
||||
export type ResponseType = Promise<defs.ResultVO<defs.IORecords>>; |
||||
|
||||
export const URL = '/api/records/deny'; |
||||
|
||||
/** |
||||
* @desc 根据记录ID获取记录详细信息 |
||||
*/ |
||||
export function request( |
||||
params: Params, |
||||
options?: WechatMiniprogram.RequestOption, |
||||
): ResponseType { |
||||
let url = '/api/records/deny'; |
||||
|
||||
const fetchOption = Object.assign( |
||||
{ |
||||
url: url, |
||||
method: 'GET', |
||||
headers: { |
||||
'Content-Type': 'application/json', |
||||
}, |
||||
params: params, |
||||
}, |
||||
options, |
||||
); |
||||
return fetch(fetchOption); |
||||
} |
||||
@ -0,0 +1,33 @@ |
||||
import { fetch } from '../../../utils/util'; |
||||
|
||||
export class Params { |
||||
/** ID */ |
||||
recordId?: number; |
||||
} |
||||
|
||||
export type ResponseType = Promise<defs.ResultVO<defs.IORecords>>; |
||||
|
||||
export const URL = '/api/records/pass'; |
||||
|
||||
/** |
||||
* @desc 根据记录ID获取记录详细信息 |
||||
*/ |
||||
export function request( |
||||
params: Params, |
||||
options?: WechatMiniprogram.RequestOption, |
||||
): ResponseType { |
||||
let url = '/api/records/pass'; |
||||
|
||||
const fetchOption = Object.assign( |
||||
{ |
||||
url: url, |
||||
method: 'GET', |
||||
headers: { |
||||
'Content-Type': 'application/json', |
||||
}, |
||||
params: params, |
||||
}, |
||||
options, |
||||
); |
||||
return fetch(fetchOption); |
||||
} |
||||
Loading…
Reference in new issue