From 1ba174123825c6faa856de38b143a33995d5c1a7 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 17 三月 2025 18:30:39 +0800
Subject: [PATCH] fix: 修改支付方式选择
---
packages/services/api/typings.d.ts | 152 ++++++++++++++++++++++++++++++
packages/services/api/index.ts | 2
packages/services/api/UserRole.ts | 129 +++++++++++++++++++++++++
packages/services/api/Account.ts | 12 ++
4 files changed, 295 insertions(+), 0 deletions(-)
diff --git a/packages/services/api/Account.ts b/packages/services/api/Account.ts
index ea2306b..c0b1194 100644
--- a/packages/services/api/Account.ts
+++ b/packages/services/api/Account.ts
@@ -25,6 +25,18 @@
});
}
+/** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 POST /api/Account/GetTokenForWeb */
+export async function getTokenForWeb(body: API.AccessRequestDto, options?: API.RequestConfig) {
+ return request<API.IdentityModelTokenCacheItem>('/api/Account/GetTokenForWeb', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
/** life pay鎵嬫満楠岃瘉鐮佺櫥褰� POST /api/Account/LifePayPhoneMesssageCodeLogin */
export async function lifePayPhoneMesssageCodeLogin(
body: API.LifePayPhoneMesssageCodeLoginInput,
diff --git a/packages/services/api/UserRole.ts b/packages/services/api/UserRole.ts
new file mode 100644
index 0000000..37b6b26
--- /dev/null
+++ b/packages/services/api/UserRole.ts
@@ -0,0 +1,129 @@
+/* eslint-disable */
+// @ts-ignore
+import { request } from '@/utils/request';
+
+/** 鏂板鍚庡彴绠$悊璐︽埛 POST /api/UserRole/CreateBackClientUser */
+export async function createBackClientUser(
+ body: API.CreateBackClientUserInput,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/UserRole/CreateBackClientUser', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鏂板瑙掕壊 POST /api/UserRole/CreateRole */
+export async function createRole(body: API.CreateBaseRoleInput, options?: API.RequestConfig) {
+ return request<string>('/api/UserRole/CreateRole', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鍒犻櫎鍚庡彴绠$悊璐︽埛 GET /api/UserRole/DeleteBackClientUser */
+export async function deleteBackClientUser(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIdeleteBackClientUserParams,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/UserRole/DeleteBackClientUser', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
+/** 鍒犻櫎瑙掕壊 GET /api/UserRole/DeleteRole */
+export async function deleteRole(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIdeleteRoleParams,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/UserRole/DeleteRole', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
+/** 鍚庡彴绠$悊璐︽埛鍒楄〃 POST /api/UserRole/GetBackClientUsers */
+export async function getBackClientUsers(
+ body: API.GetBackClientUsersInput,
+ options?: API.RequestConfig
+) {
+ return request<API.UserDtoPageOutput>('/api/UserRole/GetBackClientUsers', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 瑙掕壊鍒楄〃 POST /api/UserRole/GetRoles */
+export async function getRoles(body: API.GetRolesInput, options?: API.RequestConfig) {
+ return request<API.RoleInfoPageOutput>('/api/UserRole/GetRoles', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 瑙掕壊鍚敤/绂佺敤 POST /api/UserRole/RoleEnableOrForbid */
+export async function roleEnableOrForbid(
+ body: API.RoleEnableOrForbidInput,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/UserRole/RoleEnableOrForbid', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鍚庡彴绠$悊璐︽埛缂栬緫 POST /api/UserRole/UpdateBackClientUser */
+export async function updateBackClientUser(
+ body: API.UpdateBackClientUserInput,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/UserRole/UpdateBackClientUser', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 瑙掕壊缂栬緫 POST /api/UserRole/UpdateRole */
+export async function updateRole(body: API.CreateOrUpdateRoleInput, options?: API.RequestConfig) {
+ return request<number>('/api/UserRole/UpdateRole', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
diff --git a/packages/services/api/index.ts b/packages/services/api/index.ts
index fbc70e9..1bd5275 100644
--- a/packages/services/api/index.ts
+++ b/packages/services/api/index.ts
@@ -18,6 +18,7 @@
import * as PhoneMessage from './PhoneMessage';
import * as Profile from './Profile';
import * as Tenant from './Tenant';
+import * as UserRole from './UserRole';
import * as Version from './Version';
import * as WxPayNotify from './WxPayNotify';
export default {
@@ -37,6 +38,7 @@
PhoneMessage,
Profile,
Tenant,
+ UserRole,
Version,
WxPayNotify,
};
diff --git a/packages/services/api/typings.d.ts b/packages/services/api/typings.d.ts
index dc795d9..7bdd2c6 100644
--- a/packages/services/api/typings.d.ts
+++ b/packages/services/api/typings.d.ts
@@ -76,6 +76,11 @@
extraProperties?: Record<string, any>;
}
+ interface APIdeleteBackClientUserParams {
+ /** 鐢ㄦ埛Id */
+ id?: string;
+ }
+
interface APIdeleteDefaultConnectionStringParams {
id?: string;
}
@@ -93,6 +98,11 @@
}
interface APIdeleteRoleParams {
+ id?: string;
+ }
+
+ interface APIdeleteRoleParams {
+ /** 瑙掕壊Id */
id?: string;
}
@@ -425,6 +435,35 @@
type?: string;
}
+ interface CreateBackClientUserInput {
+ /** 鍚嶇О */
+ name?: string;
+ /** 鎵嬫満鍙� */
+ phoneNumber?: string;
+ /** 璐︽埛 */
+ userName?: string;
+ remark?: string;
+ /** 瑙掕壊 */
+ roleNames?: string[];
+ /** 缁勭粐鏋舵瀯鍏徃id */
+ companyOrgId?: string;
+ /** 缁勭粐鏋舵瀯閮ㄩ棬id */
+ departmentOrgId?: string;
+ }
+
+ interface CreateBaseRoleInput {
+ /** 鍚嶇О */
+ name?: string;
+ /** 鎺掑簭 */
+ sequence?: number;
+ /** 閮ㄩ棬Id */
+ departmentId?: number;
+ /** 鏁版嵁鑼冨洿 鍏ㄩ儴鏁版嵁100 涓汉鏁版嵁 10 */
+ dataRange?: number;
+ /** 澶囨敞 */
+ remark?: string;
+ }
+
interface CreateEditPayChannelsInput {
id?: string;
channlesName?: string;
@@ -443,6 +482,21 @@
interface CreateLifePayOrderOutput {
orderNo?: string;
+ }
+
+ interface CreateOrUpdateRoleInput {
+ /** 鍚嶇О */
+ name?: string;
+ /** 鎺掑簭 */
+ sequence?: number;
+ /** 閮ㄩ棬Id */
+ departmentId?: number;
+ /** 鏁版嵁鑼冨洿 鍏ㄩ儴鏁版嵁100 涓汉鏁版嵁 10 */
+ dataRange?: number;
+ /** 澶囨敞 */
+ remark?: string;
+ /** 瑙掕壊Id */
+ id?: string;
}
interface CurrentCultureDto {
@@ -689,6 +743,14 @@
parentCode?: number;
}
+ interface GetBackClientUsersInput {
+ pageModel?: Pagination;
+ /** 璐︽埛鏄惁閿佷綇锛堟槸鍚︾鐢級 */
+ isLocked?: boolean;
+ /** 鏌ヨ鏉′欢锛氬悕绉�/璐﹀彿 */
+ queryCondition?: string;
+ }
+
interface GetFeatureListResultDto {
groups?: FeatureGroupDto[];
}
@@ -712,6 +774,12 @@
interface GetPermissionListResultDto {
entityDisplayName?: string;
groups?: PermissionGroupDto[];
+ }
+
+ interface GetRolesInput {
+ pageModel?: Pagination;
+ /** 鏌ヨ鏉′欢锛氳鑹插悕绉� */
+ queryCondition?: string;
}
interface IanaTimeZone {
@@ -1361,6 +1429,45 @@
typeSimple?: string;
}
+ interface RoleDto {
+ /** 瑙掕壊Id */
+ id?: string;
+ /** 瑙掕壊鍚� */
+ name?: string;
+ }
+
+ interface RoleEnableOrForbidInput {
+ /** 瑙掕壊Id */
+ id?: string;
+ /** 鍚敤锛歵rue锛岀鐢細false */
+ isEnable?: boolean;
+ }
+
+ interface RoleInfo {
+ /** 瑙掕壊Id */
+ id?: string;
+ /** 鍚嶇О */
+ name?: string;
+ /** 鎺掑簭 */
+ sequence?: number;
+ /** 鏄惁鍙敤 */
+ isEnable?: boolean;
+ /** 閮ㄩ棬Id */
+ departmentId?: number;
+ /** 鏁版嵁鑼冨洿 鍏ㄩ儴鏁版嵁锛�100 涓汉鏁版嵁锛�10 */
+ dataRange?: number;
+ /** 璐﹀彿鏁伴噺 */
+ userCount?: number;
+ /** 澶囨敞 */
+ remark?: string;
+ }
+
+ interface RoleInfoPageOutput {
+ pageModel?: Pagination;
+ objectData?: any;
+ data?: RoleInfo[];
+ }
+
interface SendPasswordResetCodeDto {
email: string;
appName: string;
@@ -1436,6 +1543,24 @@
enumValues?: any[];
genericArguments?: string[];
properties?: PropertyApiDescriptionModel[];
+ }
+
+ interface UpdateBackClientUserInput {
+ /** 鍚嶇О */
+ name?: string;
+ /** 鎵嬫満鍙� */
+ phoneNumber?: string;
+ /** 璐︽埛 */
+ userName?: string;
+ remark?: string;
+ /** 瑙掕壊 */
+ roleNames?: string[];
+ /** 缁勭粐鏋舵瀯鍏徃id */
+ companyOrgId?: string;
+ /** 缁勭粐鏋舵瀯閮ㄩ棬id */
+ departmentOrgId?: string;
+ /** 鐢ㄦ埛Id */
+ id?: string;
}
interface UpdateFeatureDto {
@@ -1524,6 +1649,33 @@
items?: UserData[];
}
+ interface UserDto {
+ /** 鐢ㄦ埛Id */
+ id?: string;
+ /** 鐧诲綍鐢ㄦ埛鍚嶏紙璐﹀彿锛� */
+ userName?: string;
+ /** 鍚嶇О */
+ name?: string;
+ /** 鐢ㄦ埛鎵嬫満鍙� */
+ phoneNumber?: string;
+ /** 璐︽埛鏄惁閿佷綇锛堟槸鍚︾鐢級 */
+ isLocked?: boolean;
+ /** 瑙掕壊淇℃伅 */
+ roles?: RoleDto[];
+ /** 澶囨敞 */
+ remark?: string;
+ /** 缁勭粐鏋舵瀯鍏徃id */
+ companyOrgId?: string;
+ /** 缁勭粐鏋舵瀯閮ㄩ棬id */
+ departmentOrgId?: string;
+ }
+
+ interface UserDtoPageOutput {
+ pageModel?: Pagination;
+ objectData?: any;
+ data?: UserDto[];
+ }
+
interface UserLifePayOrderOutput {
id?: string;
lifePayType?: LifePayTypeEnum;
--
Gitblit v1.9.1