zhengyiming
2025-03-17 1ba174123825c6faa856de38b143a33995d5c1a7
fix: 修改支付方式选择
1个文件已添加
3个文件已修改
295 ■■■■■ 已修改文件
packages/services/api/Account.ts 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/api/UserRole.ts 129 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/api/index.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/api/typings.d.ts 152 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,
packages/services/api/UserRole.ts
New file
@@ -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(
  // 叠加生成的Param类型 (非body参数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(
  // 叠加生成的Param类型 (非body参数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 || {}),
  });
}
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,
};
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;
    /** 启用:true,禁用: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;