From e2cbcd64dd60014d82bd898ae51fd827e01e9c18 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期日, 19 十月 2025 16:28:39 +0800 Subject: [PATCH] feat: 1.2.0.1 --- packages/services/apiV2/user.ts | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/packages/services/apiV2/user.ts b/packages/services/apiV2/user.ts index e62b980..00b2379 100644 --- a/packages/services/apiV2/user.ts +++ b/packages/services/apiV2/user.ts @@ -2,6 +2,36 @@ // @ts-ignore import { request } from '@/utils/request'; +/** 鐢熸垚鎿嶄綔浠ょ墝 POST /api/user/user/buildOperatorToken */ +export async function buildOperatorToken( + body: API.BuildOperatorTokenCommand, + options?: API.RequestConfig +) { + return request<API.BuildOperatorTokenCommandResult>('/api/user/user/buildOperatorToken', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鏍¢獙鎿嶄綔浠ょ墝 POST /api/user/user/checkOperatorToken */ +export async function checkOperatorToken( + body: API.CheckOperatorTokenCommand, + options?: API.RequestConfig +) { + return request<boolean>('/api/user/user/checkOperatorToken', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + /** 鍒犻櫎鐢ㄦ埛閾惰鍗′俊鎭� DELETE /api/user/user/deletePersonalUserBankCard */ export async function deletePersonalUserBankCard( body: API.DeletePersonalUserBankCardCommand, @@ -161,6 +191,21 @@ }); } +/** 閲嶇疆鐢ㄦ埛鎿嶄綔瀵嗙爜 POST /api/user/user/resetUserOperatorPasswords */ +export async function resetUserOperatorPasswords( + body: API.ResetUserOperatorPasswordsCommand, + options?: API.RequestConfig +) { + return request<number>('/api/user/user/resetUserOperatorPasswords', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + /** 閲嶇疆鐢ㄦ埛瀵嗙爜 POST /api/user/user/resetUserPasswords */ export async function resetUserPasswords( body: API.ResetUserPasswordsCommand, -- Gitblit v1.9.1