forked from mfay/IOReportMgt
feat 增加报备详情接口,和页面 #6
Merged
all_you_need
merged 1 commits from dev_backend_yly into master 4 years ago
@ -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