261024
This commit is contained in:
@@ -129,6 +129,20 @@ export async function doInvoice(data: ThinkInvoice) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新发票状态
|
||||
*/
|
||||
export async function getInvoiceRes(data: ThinkInvoice) {
|
||||
const res = await request.post<ApiResult<string>>(
|
||||
THINK_API_URL + "/think/think-invoice/getRes",
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function doInvoiceByListReq(data: ThinkInvoice) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
THINK_API_URL + "/think/think-invoice/doInvoiceByList",
|
||||
|
||||
Reference in New Issue
Block a user