| | |
| | | "EnumMenuType": true, |
| | | "EnumMenuVisitLevel": true, |
| | | "EnumPagedListOrder": true, |
| | | "EnumRealAccess": true, |
| | | "EnumResourceController": true, |
| | | "EnumResourceMethod": true, |
| | | "EnumRoleWebApiDataPower": true, |
| | | "EnumRoleWebApiDataPowerText": true, |
| | | "EnumRoleWebApiDataPowerTextForFilter": true, |
| | | "EnumSmsAccess": true, |
| | | "EnumUserInfoStatus": true, |
| | | "EnumUserInfoStatusText": true, |
| | | "EnumUserType": true, |
| | |
| | | const EnumMenuType: typeof import('./src/constants/apiEnum')['EnumMenuType'] |
| | | const EnumMenuVisitLevel: typeof import('./src/constants/apiEnum')['EnumMenuVisitLevel'] |
| | | const EnumPagedListOrder: typeof import('./src/constants/apiEnum')['EnumPagedListOrder'] |
| | | const EnumRealAccess: typeof import('./src/constants/apiEnum')['EnumRealAccess'] |
| | | const EnumResourceController: typeof import('./src/constants/apiEnum')['EnumResourceController'] |
| | | const EnumResourceMethod: typeof import('./src/constants/apiEnum')['EnumResourceMethod'] |
| | | const EnumRoleWebApiDataPower: typeof import('./src/constants/apiEnum')['EnumRoleWebApiDataPower'] |
| | | const EnumRoleWebApiDataPowerText: typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerText'] |
| | | const EnumRoleWebApiDataPowerTextForFilter: typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerTextForFilter'] |
| | | const EnumSmsAccess: typeof import('./src/constants/apiEnum')['EnumSmsAccess'] |
| | | const EnumUserInfoStatus: typeof import('./src/constants/apiEnum')['EnumUserInfoStatus'] |
| | | const EnumUserInfoStatusText: typeof import('./src/constants/user')['EnumUserInfoStatusText'] |
| | | const EnumUserType: typeof import('./src/constants/apiEnum')['EnumUserType'] |
| | |
| | | export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' |
| | | import('vue') |
| | | // @ts-ignore |
| | | export type { EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumUserInfoStatus, EnumUserType, EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumUserInfoStatus, EnumUserType } from './src/constants/apiEnum' |
| | | export type { EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSmsAccess, EnumUserInfoStatus, EnumUserType, EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSmsAccess, EnumUserInfoStatus, EnumUserType } from './src/constants/apiEnum' |
| | | import('./src/constants/apiEnum') |
| | | // @ts-ignore |
| | | export type { FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum, FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum } from './src/constants/cPerson' |
| | |
| | | readonly EnumMenuType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumMenuType']> |
| | | readonly EnumMenuVisitLevel: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumMenuVisitLevel']> |
| | | readonly EnumPagedListOrder: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumPagedListOrder']> |
| | | readonly EnumRealAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumRealAccess']> |
| | | readonly EnumResourceController: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumResourceController']> |
| | | readonly EnumResourceMethod: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumResourceMethod']> |
| | | readonly EnumRoleWebApiDataPower: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumRoleWebApiDataPower']> |
| | | readonly EnumRoleWebApiDataPowerText: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerText']> |
| | | readonly EnumRoleWebApiDataPowerTextForFilter: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerTextForFilter']> |
| | | readonly EnumSmsAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumSmsAccess']> |
| | | readonly EnumUserInfoStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumUserInfoStatus']> |
| | | readonly EnumUserInfoStatusText: UnwrapRef<typeof import('./src/constants/user')['EnumUserInfoStatusText']> |
| | | readonly EnumUserType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumUserType']> |
| | |
| | | Desc = 1, |
| | | } |
| | | |
| | | /** 实名通道 */ |
| | | export enum EnumRealAccess { |
| | | /**上上签 */ |
| | | BestSign = 10, |
| | | /**支付宝信任签 */ |
| | | AlipaySign = 20, |
| | | } |
| | | |
| | | /** 资源控制器 */ |
| | | export enum EnumResourceController { |
| | | /**数据字典 */ |
| | |
| | | All = 999, |
| | | } |
| | | |
| | | /** 短信通道 */ |
| | | export enum EnumSmsAccess { |
| | | /**阿里云短信 */ |
| | | AliyunSms = 10, |
| | | } |
| | | |
| | | /** 用户信息状态 */ |
| | | export enum EnumUserInfoStatus { |
| | | /**正常 */ |
| | |
| | | |
| | | type UseDictionaryDataSelectOptions = { |
| | | categoryId?: MaybeRef<string>; |
| | | categoryCode?: MaybeRef<string>; |
| | | categoryCode?: MaybeRef<CategoryCode>; |
| | | }; |
| | | |
| | | export function useDictionaryDataSelect({ |
| | |
| | | categoryCode, |
| | | }: UseDictionaryDataSelectOptions) { |
| | | const { data: dictionaryDataList, refetch } = useQuery({ |
| | | queryKey: ['dictionaryServices/getDictionaryDataSelect'], |
| | | queryKey: ['dictionaryServices/getDictionaryDataSelect', categoryId, categoryCode], |
| | | queryFn: async () => { |
| | | let res = await dictionaryServices.getDictionaryDataSelect( |
| | | { |
| | |
| | | }, |
| | | placeholderData: () => |
| | | [] as API.SelectQueryResultOptionGuidGetDictionaryDataSelectQueryResultOption[], |
| | | |
| | | enabled: !!unref(categoryId) || !!unref(categoryCode), |
| | | }); |
| | | |
| | | function getDictionaryDataNameById(id: string) { |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 获取当前登录用户菜单详情 GET /api/user/auth/getCurrentLogierMenu */ |
| | | export async function getCurrentLogierMenu( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetCurrentLogierMenuParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetMenuQueryResult>('/api/user/auth/getCurrentLogierMenu', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取当前登录用户菜单 GET /api/user/auth/getCurrentLogierMenus */ |
| | | export async function getCurrentLogierMenus( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 保存企业 POST /api/user/enterprise/saveEnterprise */ |
| | | export async function saveEnterprise(body: API.SaveEnterpriseCommand, options?: API.RequestConfig) { |
| | | return request<string>('/api/user/enterprise/saveEnterprise', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置企业电子签配置 PUT /api/user/enterprise/setEnterpriseElectronSignSetting */ |
| | | export async function setEnterpriseElectronSignSetting( |
| | | body: API.SetEnterpriseElectronSignSettingCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterprise/setEnterpriseElectronSignSetting', { |
| | | method: 'PUT', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置企业短信配置 PUT /api/user/enterprise/setEnterpriseSmsSetting */ |
| | | export async function setEnterpriseSmsSetting( |
| | | body: API.SetEnterpriseSmsSettingCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterprise/setEnterpriseSmsSetting', { |
| | | method: 'PUT', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | // API 更新时间: |
| | | // API 唯一标识: |
| | | import * as auth from './auth'; |
| | | import * as enterprise from './enterprise'; |
| | | import * as menu from './menu'; |
| | | import * as dictionary from './dictionary'; |
| | | import * as resource from './resource'; |
| | | import * as role from './role'; |
| | | import * as userInfo from './userInfo'; |
| | | import * as enterprise from './enterprise'; |
| | | export default { |
| | | auth, |
| | | enterprise, |
| | | menu, |
| | | dictionary, |
| | | resource, |
| | | role, |
| | | userInfo, |
| | | enterprise, |
| | | }; |
| | |
| | | request?: GetAliyunOSSAcsQuery; |
| | | } |
| | | |
| | | interface APIgetCurrentLogierMenuParams { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetCurrentLogierMenusParams { |
| | | /** 获取当前登录用户菜单 */ |
| | | request?: GetCurrentLogierMenusQuery; |
| | |
| | | ids: string[]; |
| | | } |
| | | |
| | | interface DictionaryCategory { |
| | | id?: string; |
| | | createdTime?: string; |
| | | updatedTime?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 创建操作人 */ |
| | | createdUserInfoId?: string; |
| | | /** 最后更新操作人 */ |
| | | updatedUserInfoId?: string; |
| | | /** 是否删除 */ |
| | | isDeleted?: boolean; |
| | | /** 编号 */ |
| | | code: string; |
| | | /** 名称 */ |
| | | name: string; |
| | | /** 字段名(逗号隔开) */ |
| | | fieldNames?: string; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface DictionaryData { |
| | | id?: string; |
| | | createdTime?: string; |
| | | updatedTime?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 创建操作人 */ |
| | | createdUserInfoId?: string; |
| | | /** 最后更新操作人 */ |
| | | updatedUserInfoId?: string; |
| | | /** 是否删除 */ |
| | | isDeleted?: boolean; |
| | | /** 类别Id */ |
| | | categoryId?: string; |
| | | category?: DictionaryCategory; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | parent?: DictionaryData; |
| | | /** 下级 */ |
| | | children?: DictionaryData[]; |
| | | /** 字典路径 */ |
| | | path?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 显示内容 */ |
| | | content: string; |
| | | /** 字段1 */ |
| | | field1?: string; |
| | | /** 字段2 */ |
| | | field2?: string; |
| | | /** 字段3 */ |
| | | field3?: string; |
| | | /** 字段4 */ |
| | | field4?: string; |
| | | /** 字段5 */ |
| | | field5?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface DictionaryDataQueryResult { |
| | | /** 内容 */ |
| | | content?: string; |
| | | } |
| | | |
| | | enum EnumClientType { |
| | | /**电脑网页 */ |
| | | PcWeb = 10, |
| | |
| | | Asc = 0, |
| | | /**降序 */ |
| | | Desc = 1, |
| | | } |
| | | |
| | | enum EnumRealAccess { |
| | | /**上上签 */ |
| | | BestSign = 10, |
| | | /**支付宝信任签 */ |
| | | AlipaySign = 20, |
| | | } |
| | | |
| | | enum EnumResourceController { |
| | |
| | | CurrentEnterprise = 30, |
| | | /**查询所有 */ |
| | | All = 999, |
| | | } |
| | | |
| | | enum EnumSmsAccess { |
| | | /**阿里云短信 */ |
| | | AliyunSms = 10, |
| | | } |
| | | |
| | | enum EnumUserInfoStatus { |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultListSelectQueryResultOptionGuidGetDictionaryCategorySelectQueryOption { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: SelectQueryResultOptionGuidGetDictionaryCategorySelectQueryOption[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultListSelectQueryResultOptionGuidGetDictionaryDataSelectQueryResultOption { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: SelectQueryResultOptionGuidGetDictionaryDataSelectQueryResultOption[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultPagedListQueryResultGetDictionaryCategoriesQueryResultItem { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | sort?: number; |
| | | } |
| | | |
| | | type GetDictionaryCategorySelectQuery = Record<string, any>; |
| | | |
| | | interface GetDictionaryDatasQuery { |
| | | pageModel?: PagedListQueryPageModel; |
| | | /** 类别Id */ |
| | | /** 类别Id(Id/编号二选一) */ |
| | | categoryId?: string; |
| | | /** 类别编号(Id/编号二选一) */ |
| | | categoryCode?: string; |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | } |
| | |
| | | id?: string; |
| | | /** 类别Id */ |
| | | categoryId?: string; |
| | | /** 类别编号 */ |
| | | categoryCode?: string; |
| | | /** 类别名称 */ |
| | | categoryName?: string; |
| | | category?: GetDictionaryDatasQueryResultItemCategory; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | /** 编号 */ |
| | |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface GetDictionaryDatasQueryResultItemCategory { |
| | | /** 类别编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | } |
| | | |
| | | interface GetEnterprisesQuery { |
| | | pageModel?: PagedListQueryPageModel; |
| | | /** 关键字 */ |
| | |
| | | interface GetEnterprisesQueryResultItem { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 企业全称 */ |
| | | enterpriseName?: string; |
| | | /** 法人姓名 */ |
| | | legalPerson?: string; |
| | | /** 统一社会信用代码 */ |
| | | societyCreditCode?: string; |
| | | /** 联系人 */ |
| | | contacts?: string; |
| | | /** 联系电话 */ |
| | | contactNumber?: string; |
| | | /** 所在省份Id */ |
| | | provinceId?: string; |
| | | province?: DictionaryDataQueryResult; |
| | | /** 所在城市Id */ |
| | | cityId?: string; |
| | | city?: DictionaryDataQueryResult; |
| | | /** 所属行业Id */ |
| | | industryTypeId?: string; |
| | | industryType?: DictionaryDataQueryResult; |
| | | /** 是否已校验银行账户 */ |
| | | isCheckedBankCard?: boolean; |
| | | realAccess?: EnumRealAccess; |
| | | smsAccess?: EnumSmsAccess; |
| | | /** 是否已配置 */ |
| | | isConfigured?: boolean; |
| | | } |
| | | |
| | | interface GetMenuQueryResult { |
| | |
| | | } |
| | | |
| | | interface SaveDictionaryCategoryCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 编号 */ |
| | | code: string; |
| | |
| | | } |
| | | |
| | | interface SaveDictionaryDataCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 类别Id */ |
| | | categoryId?: string; |
| | |
| | | sort?: number; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface SaveEnterpriseCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | enterpriseAuth: SaveEnterpriseCommandAuth; |
| | | /** 所在省份Id */ |
| | | provinceId?: string; |
| | | province?: DictionaryData; |
| | | /** 所在城市Id */ |
| | | cityId?: string; |
| | | city?: DictionaryData; |
| | | /** 所属行业Id */ |
| | | industryTypeId?: string; |
| | | industryType?: DictionaryData; |
| | | /** 主营业务 */ |
| | | mainBusiness?: string; |
| | | /** 联系人 */ |
| | | contacts?: string; |
| | | /** 联系电话 */ |
| | | contactPhoneNumber?: string; |
| | | /** 联系邮箱 */ |
| | | contactEmail?: string; |
| | | /** 账号 */ |
| | | userName?: string; |
| | | /** 密码 */ |
| | | password?: string; |
| | | } |
| | | |
| | | interface SaveEnterpriseCommandAuth { |
| | | /** 企业全称 */ |
| | | enterpriseName: string; |
| | | /** 统一社会信用代码 */ |
| | | societyCreditCode: string; |
| | | /** 法人姓名 */ |
| | | legalPerson?: string; |
| | | /** 法人身份证号 */ |
| | | legalIdentity?: string; |
| | | } |
| | | |
| | | interface SaveMenuButtonCommand { |
| | |
| | | resources?: GetRoleQueryResultResource[]; |
| | | } |
| | | |
| | | interface SelectQueryResultOptionGuidGetDictionaryCategorySelectQueryOption { |
| | | /** 值 */ |
| | | value?: string; |
| | | /** 标签 */ |
| | | label?: string; |
| | | /** 数据 */ |
| | | data?: any; |
| | | } |
| | | |
| | | interface SelectQueryResultOptionGuidGetDictionaryDataSelectQueryResultOption { |
| | | /** 值 */ |
| | | value?: string; |
| | | /** 标签 */ |
| | | label?: string; |
| | | /** 数据 */ |
| | | data?: any; |
| | | } |
| | | |
| | | interface SetDictionaryDataIsDisabledCommand { |
| | | /** Id */ |
| | | ids?: string[]; |
| | | /** 是否禁用 */ |
| | | /** 是否已禁用 */ |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface SetEnterpriseElectronSignSettingCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | realAccess?: EnumRealAccess; |
| | | /** 实名费用 */ |
| | | realVerifyCost?: number; |
| | | /** 签约费用 */ |
| | | signCost?: number; |
| | | /** 一口价 */ |
| | | mergeSignCost?: number; |
| | | } |
| | | |
| | | interface SetEnterpriseSmsSettingCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | smsAccess?: EnumSmsAccess; |
| | | /** 短信费用 */ |
| | | smsCost?: number; |
| | | } |
| | | |
| | | interface SetMenuSwitchCommand { |
| | |
| | | } |
| | | |
| | | interface SetRoleIsDisabledCommand { |
| | | /** Id */ |
| | | ids: string[]; |
| | | /** 是否禁用 */ |
| | | ids?: string[]; |
| | | /** 是否已禁用 */ |
| | | isDisabled?: boolean; |
| | | } |
| | | |