| | |
| | | }); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 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, |
New file |
| | |
| | | /* 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 || {}), |
| | | }); |
| | | } |
| | |
| | | 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 { |
| | |
| | | PhoneMessage, |
| | | Profile, |
| | | Tenant, |
| | | UserRole, |
| | | Version, |
| | | WxPayNotify, |
| | | }; |
| | |
| | | extraProperties?: Record<string, any>; |
| | | } |
| | | |
| | | interface APIdeleteBackClientUserParams { |
| | | /** 用户Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIdeleteDefaultConnectionStringParams { |
| | | id?: string; |
| | | } |
| | |
| | | } |
| | | |
| | | interface APIdeleteRoleParams { |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIdeleteRoleParams { |
| | | /** 角色Id */ |
| | | id?: string; |
| | | } |
| | | |
| | |
| | | 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; |
| | |
| | | |
| | | interface CreateLifePayOrderOutput { |
| | | orderNo?: string; |
| | | } |
| | | |
| | | interface CreateOrUpdateRoleInput { |
| | | /** 名称 */ |
| | | name?: string; |
| | | /** 排序 */ |
| | | sequence?: number; |
| | | /** 部门Id */ |
| | | departmentId?: number; |
| | | /** 数据范围 全部数据100 个人数据 10 */ |
| | | dataRange?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | /** 角色Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface CurrentCultureDto { |
| | |
| | | parentCode?: number; |
| | | } |
| | | |
| | | interface GetBackClientUsersInput { |
| | | pageModel?: Pagination; |
| | | /** 账户是否锁住(是否禁用) */ |
| | | isLocked?: boolean; |
| | | /** 查询条件:名称/账号 */ |
| | | queryCondition?: string; |
| | | } |
| | | |
| | | interface GetFeatureListResultDto { |
| | | groups?: FeatureGroupDto[]; |
| | | } |
| | |
| | | interface GetPermissionListResultDto { |
| | | entityDisplayName?: string; |
| | | groups?: PermissionGroupDto[]; |
| | | } |
| | | |
| | | interface GetRolesInput { |
| | | pageModel?: Pagination; |
| | | /** 查询条件:角色名称 */ |
| | | queryCondition?: string; |
| | | } |
| | | |
| | | interface IanaTimeZone { |
| | |
| | | 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; |
| | |
| | | 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 { |
| | |
| | | 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; |