|
|
@@ -1,16 +1,20 @@
|
|
|
import http from '../../index'
|
|
|
|
|
|
import type { PushRecordIdRequest } from '../invoiceInformation/type.d'
|
|
|
-import type { GetFaceAuthInfoRequest, GetFaceAuthInfoReqsponse } from './type.d'
|
|
|
+import type {
|
|
|
+ GetFaceAuthInfoRequest,
|
|
|
+ GetFaceAuthInfoResponse,
|
|
|
+ GetFaceAuthResultReqsponse,
|
|
|
+} from './type.d'
|
|
|
export const getFaceAuthInfoApi = (data: GetFaceAuthInfoRequest) => {
|
|
|
- return http.post({
|
|
|
+ return http.post<GetFaceAuthInfoResponse>({
|
|
|
url: '/admin/invoice-order/get-face-auth-info',
|
|
|
data,
|
|
|
})
|
|
|
}
|
|
|
|
|
|
export const getFaceAuthResultApi = (data: PushRecordIdRequest) => {
|
|
|
- return http.post<GetFaceAuthInfoReqsponse>({
|
|
|
+ return http.post<GetFaceAuthResultReqsponse>({
|
|
|
url: '/admin/invoice-order/get-face-auth-result',
|
|
|
data,
|
|
|
})
|