From 3c42cdfe02b7a8e890d19b6bddd1a14365e754d5 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 30 五月 2025 17:15:35 +0800 Subject: [PATCH] fix: bug --- src/services/api/User.ts | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/src/services/api/User.ts b/src/services/api/User.ts index a1d348f..706aab2 100644 --- a/src/services/api/User.ts +++ b/src/services/api/User.ts @@ -2,6 +2,21 @@ // @ts-ignore import { request } from '@/utils/request'; +/** 鎵归噺鍚屾鐢ㄦ埛浣欓 POST /api/User/BatchSyncUserAmount */ +export async function batchSyncUserAmount( + body: API.BatchSyncUserAmountInput, + options?: API.RequestConfig +) { + return request<any>('/api/User/BatchSyncUserAmount', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + /** 鏂板璐﹀彿淇℃伅 POST /api/User/CreateAccount */ export async function createAccount(body: API.CreateAccountInput, options?: API.RequestConfig) { return request<string>('/api/User/CreateAccount', { @@ -81,6 +96,14 @@ }); } +/** 鑾峰彇瀹㈡埛浣欓淇℃伅 GET /api/User/GetUserAmountShow */ +export async function getUserAmountShow(options?: API.RequestConfig) { + return request<API.UserAmountShowDto>('/api/User/GetUserAmountShow', { + method: 'GET', + ...(options || {}), + }); +} + /** 鑾峰彇鐢ㄦ埛璇︽儏 GET /api/User/GetUserDetail */ export async function getUserDetail( // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) @@ -135,6 +158,18 @@ }); } +/** 鍚屾鐢ㄦ埛 POST /api/User/SyncUser */ +export async function syncUser(body: API.SyncUserDto, options?: API.RequestConfig) { + return request<string>('/api/User/SyncUser', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + /** 鏇存柊璐﹀彿淇℃伅 POST /api/User/UpdateAccount */ export async function updateAccount(body: API.UpdateAccountInput, options?: API.RequestConfig) { return request<number>('/api/User/UpdateAccount', { -- Gitblit v1.9.1