diff --git a/src/api/platform/common/controller/pushApplication.ts b/src/api/platform/common/controller/pushApplication.ts index 329d183..d77d6f2 100644 --- a/src/api/platform/common/controller/pushApplication.ts +++ b/src/api/platform/common/controller/pushApplication.ts @@ -5,7 +5,7 @@ */ import type { PushApplication, PushApplicationParams, PushApplicationResult } from '/@/api/platform/common/entity/pushApplication'; import { defHttp } from '/@/utils/http/axios'; -import type { PushMessage } from '/@/api/platform/common/entity/pushMessage'; +import type { PushChatMessage } from '/@/api/platform/common/entity/pushChatMessage'; enum Api { list = '/common_proxy/common/pushApplication/list', @@ -20,7 +20,7 @@ export const listPushApplication = (params?: Partial) => export const addPushApplication = (params: Partial) => defHttp.post({ url: Api.add, data: params }); -export const sendMessage = (params: Partial) => defHttp.post({ url: Api.send, data: params }); +export const sendMessage = (params: Partial) => defHttp.post({ url: Api.send, data: params }); export const editPushApplication = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); diff --git a/src/api/platform/common/controller/pushBlacklist.ts b/src/api/platform/common/controller/pushBlacklist.ts new file mode 100644 index 0000000..eee649a --- /dev/null +++ b/src/api/platform/common/controller/pushBlacklist.ts @@ -0,0 +1,25 @@ +/** + * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 + * Copyright © 2020-2022 entfrm All rights reserved. + * author entfrm开发团队-王翔 + */ +import type { PushBlacklist, PushBlacklistParams, PushBlacklistResult } from '/@/api/platform/common/entity/pushBlacklist'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushBlacklist/list', + getById = '/common_proxy/common/pushBlacklist/getById', + add = '/common_proxy/common/pushBlacklist/save', + edit = '/common_proxy/common/pushBlacklist/update', + del = '/common_proxy/common/pushBlacklist/remove', +} + +export const listPushBlacklist = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushBlacklist = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushBlacklist = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushBlacklist = (params: Partial) => defHttp.get({ url: Api.getById, params }); + +export const delPushBlacklist = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushChatMessage.ts b/src/api/platform/common/controller/pushChatMessage.ts new file mode 100644 index 0000000..4b8e367 --- /dev/null +++ b/src/api/platform/common/controller/pushChatMessage.ts @@ -0,0 +1,25 @@ +/** + * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 + * Copyright © 2020-2022 entfrm All rights reserved. + * author entfrm开发团队-王翔 + */ +import type { PushChatMessage, PushChatMessageParams, PushChatMessageResult } from '/@/api/platform/common/entity/pushChatMessage'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushChatMessage/list', + get = '/common_proxy/common/pushChatMessage', + add = '/common_proxy/common/pushChatMessage/save', + edit = '/common_proxy/common/pushChatMessage/update', + del = '/common_proxy/common/pushChatMessage/remove', +} + +export const listPushChatMessage = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushChatMessage = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushChatMessage = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushChatMessage = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushChatMessage = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushConcernFan.ts b/src/api/platform/common/controller/pushConcernFan.ts new file mode 100644 index 0000000..42ae8ee --- /dev/null +++ b/src/api/platform/common/controller/pushConcernFan.ts @@ -0,0 +1,23 @@ +import type { PushConcernFan, PushConcernFanParams, PushConcernFanResult } from '/@/api/platform/common/entity/pushConcernFan'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushConcernFan/list', + get = '/common_proxy/common/pushConcernFan', + audit = '/common_proxy/common/pushConcernFan/audit', + add = '/common_proxy/common/pushConcernFan/save', + edit = '/common_proxy/common/pushConcernFan/update', + del = '/common_proxy/common/pushConcernFan/remove', +} + +export const listPushConcernFan = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushConcernFan = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushConcernFan = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushConcernFan = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushConcernFan = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); + +export const auditPushConcernFan = (ids: string) => defHttp.delete({ url: `${Api.audit}/${ids}` }); diff --git a/src/api/platform/common/controller/pushConcernFanType.ts b/src/api/platform/common/controller/pushConcernFanType.ts new file mode 100644 index 0000000..d389872 --- /dev/null +++ b/src/api/platform/common/controller/pushConcernFanType.ts @@ -0,0 +1,20 @@ +import type { PushConcernFanType, PushConcernFanTypeParams, PushConcernFanTypeResult } from '/@/api/platform/common/entity/pushConcernFanType'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushConcernFanType/list', + get = '/common_proxy/common/pushConcernFanType', + add = '/common_proxy/common/pushConcernFanType/save', + edit = '/common_proxy/common/pushConcernFanType/update', + del = '/common_proxy/common/pushConcernFanType/remove', +} + +export const listPushConcernFanType = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushConcernFanType = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushConcernFanType = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushConcernFanType = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushConcernFanType = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushCustomType.ts b/src/api/platform/common/controller/pushCustomType.ts deleted file mode 100644 index 9e29195..0000000 --- a/src/api/platform/common/controller/pushCustomType.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 - * Copyright © 2020-2022 entfrm All rights reserved. - * author entfrm开发团队-王翔 - */ -import type { PushCustomType, PushCustomTypeParams, PushCustomTypeResult } from '/@/api/platform/common/entity/pushCustomType'; -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/common_proxy/common/pushCustomType/list', - add = '/common_proxy/common/pushCustomType/save', - get = '/common_proxy/common/pushCustomType', - edit = '/common_proxy/common/pushCustomType/update', - del = '/common_proxy/common/pushCustomType/remove', -} - -export const listPushCustomType = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); - -export const addPushCustomType = (params: Partial) => defHttp.post({ url: Api.add, data: params }); - -export const editPushCustomType = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); - -export const getPushCustomType = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); - -export const delPushCustomType = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushEnterprise.ts b/src/api/platform/common/controller/pushEnterprise.ts new file mode 100644 index 0000000..9f55b8a --- /dev/null +++ b/src/api/platform/common/controller/pushEnterprise.ts @@ -0,0 +1,26 @@ +import type { PushChatMessage, PushChatMessageParams, PushChatMessageResult } from '/@/api/platform/common/entity/pushChatMessage'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushEnterprise/list', + get = '/common_proxy/common/pushEnterprise', + getByUserId = '/common_proxy/common/pushEnterprise/getByUserId', + add = '/common_proxy/common/pushEnterprise/save', + edit = '/common_proxy/common/pushEnterprise/update', + del = '/common_proxy/common/pushEnterprise/remove', + revokeAuth = '/common_proxy/common/pushEnterprise/revokeAuth' +} + +export const listPushEnterprise = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushEnterprise = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushEnterprise = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushEnterprise = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const getPushEnterpriseByUserId = (id: string) => defHttp.get({ url: `${Api.getByUserId}/${id}` }); + +export const revokeAuthPushEnterprise = () => defHttp.delete({ url: Api.revokeAuth }); + +export const delPushEnterprise = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushFile.ts b/src/api/platform/common/controller/pushFile.ts deleted file mode 100644 index 574114d..0000000 --- a/src/api/platform/common/controller/pushFile.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 - * Copyright © 2020-2022 entfrm All rights reserved. - * author entfrm开发团队-王翔 - */ -import type { PushFileParams, PushFileResult } from '/@/api/platform/common/entity/pushFile'; -import { defHttp } from '/@/utils/http/axios'; -import { UploadFileParams } from '/#/axios'; -import { UploadResult } from '/@/api/platform/core/entity/upload'; -import {useGlobSetting} from '/@/hooks/setting'; -const { apiUrl } = useGlobSetting(); - -enum Api { - list = '/common_proxy/common/pushFile/list', - upload = '/common_proxy/common/pushFile/upload', - del = '/common_proxy/common/pushFile/remove' -} - -export const listPushFile = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); - -export const commonUpload = (params: UploadFileParams, onUploadProgress: (progressEvent: ProgressEvent) => void) => - defHttp.uploadFile({ url: apiUrl + Api.upload, onUploadProgress }, params); - -export const delPushFile = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushMessage.ts b/src/api/platform/common/controller/pushMessage.ts deleted file mode 100644 index e141f8f..0000000 --- a/src/api/platform/common/controller/pushMessage.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 - * Copyright © 2020-2022 entfrm All rights reserved. - * author entfrm开发团队-王翔 - */ -import type { PushMessageParams, PushMessageResult, PushMessage } from '/@/api/platform/common/entity/pushMessage'; -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/common_proxy/common/pushMessage/list', - add = '/common_proxy/common/pushMessage/save', - get = '/common_proxy/common/pushMessage', - edit = '/common_proxy/common/pushMessage/update', - del = '/common_proxy/common/pushMessage/remove' -} - -export const listPushMessage = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); - -export const addPushMessage = (params: Partial) => defHttp.post({ url: Api.add, data: params }); - -export const editPushMessage = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); - -export const getPushMessage = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); - -export const delPushMessage = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushPassList.ts b/src/api/platform/common/controller/pushPassList.ts deleted file mode 100644 index e1e63aa..0000000 --- a/src/api/platform/common/controller/pushPassList.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 - * Copyright © 2020-2022 entfrm All rights reserved. - * author entfrm开发团队-王翔 - */ -import type { PushPassList, PushPassListParams, PushPassListResult } from '/@/api/platform/common/entity/pushPassList'; -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/common_proxy/common/pushPassList/list', - add = '/common_proxy/common/pushPassList/save', - get = '/common_proxy/common/pushPassList', - edit = '/common_proxy/common/pushPassList/update', - del = '/common_proxy/common/pushPassList/remove', -} - -export const listPushPassList = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); - -export const addPushPassList = (params: Partial) => defHttp.post({ url: Api.add, data: params }); - -export const editPushPassList = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); - -export const getPushPassList = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); - -export const delPushPassList = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushRingtone.ts b/src/api/platform/common/controller/pushRingtone.ts new file mode 100644 index 0000000..24d8d3d --- /dev/null +++ b/src/api/platform/common/controller/pushRingtone.ts @@ -0,0 +1,20 @@ +import type { PushRingtone, PushRingtoneParams, PushRingtoneResult } from '/@/api/platform/common/entity/pushRingtone'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushRingtone/list', + get = '/common_proxy/common/pushRingtone', + add = '/common_proxy/common/pushRingtone/save', + edit = '/common_proxy/common/pushRingtone/update', + del = '/common_proxy/common/pushRingtone/remove', +} + +export const listPushRingtone = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushRingtone = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushRingtone = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushRingtone = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushRingtone = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushThirdParty.ts b/src/api/platform/common/controller/pushThirdParty.ts deleted file mode 100644 index 249e19d..0000000 --- a/src/api/platform/common/controller/pushThirdParty.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 - * Copyright © 2020-2022 entfrm All rights reserved. - * author entfrm开发团队-王翔 - */ -import type { PushThirdParty, PushThirdPartyParams, PushThirdPartyResult } from '/@/api/platform/common/entity/pushThirdParty'; -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/common_proxy/common/pushThirdParty/list', - add = '/common_proxy/common/pushThirdParty/save', - get = '/common_proxy/common/pushThirdParty', - getByUserId = '/common_proxy/common/pushThirdParty/getByUserId', - edit = '/common_proxy/common/pushThirdParty/update', - del = '/common_proxy/common/pushThirdParty/remove', - revokeAuth = '/common_proxy/common/pushThirdParty/revokeAuth' -} - -export const listPushThirdParty = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); - -export const addPushThirdParty = (params: Partial) => defHttp.post({ url: Api.add, data: params }); - -export const editPushThirdParty = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); - -export const getPushThirdParty = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); - -export const getPushThirdPartyByUserId = (id: string) => defHttp.get({ url: `${Api.getByUserId}/${id}` }); - -export const delRevokeAuth = () => defHttp.delete({ url: Api.revokeAuth }); - -export const delPushThirdParty = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushType.ts b/src/api/platform/common/controller/pushType.ts new file mode 100644 index 0000000..1be2d1d --- /dev/null +++ b/src/api/platform/common/controller/pushType.ts @@ -0,0 +1,20 @@ +import type { PushType, PushTypeParams, PushTypeResult } from '/@/api/platform/common/entity/pushType'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushType/list', + get = '/common_proxy/common/pushType', + add = '/common_proxy/common/pushType/save', + edit = '/common_proxy/common/pushType/update', + del = '/common_proxy/common/pushType/remove', +} + +export const listPushType = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushType = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushType = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushType = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushType = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushUserManage.ts b/src/api/platform/common/controller/pushUserManage.ts deleted file mode 100644 index 1c9e090..0000000 --- a/src/api/platform/common/controller/pushUserManage.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 - * Copyright © 2020-2022 entfrm All rights reserved. - * author entfrm开发团队-王翔 - */ -import type { PushUserManage, PushUserManageParams, PushUserManageResult } from '/@/api/platform/common/entity/pushUserManage'; -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/common_proxy/common/pushUserManage/list', - add = '/common_proxy/common/pushUserManage/save', - get = '/common_proxy/common/pushUserManage', - edit = '/common_proxy/common/pushUserManage/update', - del = '/common_proxy/common/pushUserManage/remove', -} - -export const listPushUserManage = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); - -export const addPushUserManage = (params: Partial) => defHttp.post({ url: Api.add, data: params }); - -export const editPushUserManage = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); - -export const getPushUserManage = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); - -export const delPushUserManage = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/entity/pushApplication.ts b/src/api/platform/common/entity/pushApplication.ts index 51eea93..88a6455 100644 --- a/src/api/platform/common/entity/pushApplication.ts +++ b/src/api/platform/common/entity/pushApplication.ts @@ -7,7 +7,7 @@ export interface PushApplication extends CommonEntity { id: string; name: string; status: string; - ip: string; + ignoreIp: string; messageSecret: string; } diff --git a/src/api/platform/common/entity/pushBlacklist.ts b/src/api/platform/common/entity/pushBlacklist.ts new file mode 100644 index 0000000..ea230d1 --- /dev/null +++ b/src/api/platform/common/entity/pushBlacklist.ts @@ -0,0 +1,31 @@ +import type { R } from '/#/axios'; +import type { Page } from '/@/api/common/data/entity'; + +export type PushBlacklistParams = Page & PushBlacklist; + +export interface PushBlacklist { + concernUserId: string; + fanUserId: string; + deptName: string; + createByName: string; + updateByName: string; + nickName: string; + sex: string; + deptId: string; + updateTime: string; + avatar: string; + userName: string; + updateById: string; + loginTime: string; + phone: string; + createTime: string; + loginIp: string; + createById: string; + userType: string; + email: string; + remarks: string; + status: string; + [key:string]: any; +} + +export type PushBlacklistResult = R; diff --git a/src/api/platform/common/entity/pushChatMessage.ts b/src/api/platform/common/entity/pushChatMessage.ts new file mode 100644 index 0000000..8549b48 --- /dev/null +++ b/src/api/platform/common/entity/pushChatMessage.ts @@ -0,0 +1,27 @@ +import type { R } from '/#/axios'; +import type { Page } from '/@/api/common/data/entity'; + +export type PushChatMessageParams = Page & PushChatMessage; + +export interface PushChatMessage { + id: string; + userId: string; + pushUserId: string; + type: string; + status: string; + pushTypeId: string; + aliasType: string; + alias: string; + displayType: string; + title: string; + text: string; + sound: string; + playVibrate: string; + playLights: string; + playSound: string; + onlineRingtone: string; + custom: string; + [key:string]: any; +} + +export type PushChatMessageResult = R; diff --git a/src/api/platform/common/entity/pushConcernFan.ts b/src/api/platform/common/entity/pushConcernFan.ts new file mode 100644 index 0000000..7790b4c --- /dev/null +++ b/src/api/platform/common/entity/pushConcernFan.ts @@ -0,0 +1,34 @@ +import type { R } from '/#/axios'; +import type { Page } from '/@/api/common/data/entity'; + +export type PushConcernFanParams = Page & PushConcernFan; + +export interface PushConcernFan { + id: string; + deptName: string; + createByName: string; + updateByName: string; + nickName: string; + concernUserId: string; + sex: string; + deptId: string; + fanUserId: string; + updateTime: string; + fanCreateTime: string; + avatar: string; + userName: string; + updateById: string; + loginTime?: string; + phone: string; + createTime: string; + loginIp: string; + fanRemarks?: string; + createById: string; + userType: string; + email: string; + remarks: string; + status: string; + [key:string]: any; +} + +export type PushConcernFanResult = R; diff --git a/src/api/platform/common/entity/pushConcernFanType.ts b/src/api/platform/common/entity/pushConcernFanType.ts new file mode 100644 index 0000000..e2dae61 --- /dev/null +++ b/src/api/platform/common/entity/pushConcernFanType.ts @@ -0,0 +1,21 @@ +import type { R } from '/#/axios'; +import type { Page } from '/@/api/common/data/entity'; + +export type PushConcernFanTypeParams = Page & PushConcernFanType; + +export interface PushConcernFanType { + id: string; + name: string; + userId: string; + typeId: string; + defaultType: string; + playSound: string; + playVibrate: string; + playLights: string; + playToText: string; + onlineRingtone: string; + offlineRingtone: string; + [key:string]: any; +} + +export type PushConcernFanTypeResult = R; diff --git a/src/api/platform/common/entity/pushCustomType.ts b/src/api/platform/common/entity/pushCustomType.ts deleted file mode 100644 index ef51ee8..0000000 --- a/src/api/platform/common/entity/pushCustomType.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { R } from '/#/axios'; -import type { CommonEntity, Page } from '/@/api/common/data/entity'; - -export type PushCustomTypeParams = Page & PushCustomType; - -export interface PushCustomType extends CommonEntity { - id: string; - name: string; - playSound: string; - playVibrate: string; - playLights: string; - customPlayFileName: string; -} - -export type PushCustomTypeResult = R; diff --git a/src/api/platform/common/entity/pushEnterprise.ts b/src/api/platform/common/entity/pushEnterprise.ts new file mode 100644 index 0000000..5b46a28 --- /dev/null +++ b/src/api/platform/common/entity/pushEnterprise.ts @@ -0,0 +1,20 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; + +export type PushEnterpriseParams = Page & PushEnterprise; + +export interface PushEnterprise extends CommonEntity { + id: string; + name: string; + repName: string; + phone: string; + license: string; + userId: string; + creditCode: string; + idCard: string; + status: string; + detailedAddress: string; + [key:string]: any; +} + +export type PushEnterpriseResult = R; diff --git a/src/api/platform/common/entity/pushFile.ts b/src/api/platform/common/entity/pushFile.ts deleted file mode 100644 index 1e43530..0000000 --- a/src/api/platform/common/entity/pushFile.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { R } from '/#/axios'; -import type { CommonEntity, Page } from '/@/api/common/data/entity'; - -export type PushFileParams = Page & PushFile; - -export interface PushFile extends CommonEntity { - id: string; - fileUrl: string; - fileName: string; - bucketName: string; - original: string; - type: string; - fileSize: number; - [key: string]: any; -} - -export type PushFileResult = R; diff --git a/src/api/platform/common/entity/pushMessage.ts b/src/api/platform/common/entity/pushMessage.ts deleted file mode 100644 index a1e880f..0000000 --- a/src/api/platform/common/entity/pushMessage.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { R } from '/#/axios'; -import type { CommonEntity, Page } from '/@/api/common/data/entity'; - -export type PushMessageParams = Page & PushMessage; - -export interface PushMessage extends CommonEntity { - id: string; - fromUserId: string; - type: string; - customTypeId: string; - status: string; - aliasType: string; - alias: string; - displayType: string; - title: string; - text: string; - sound: string; - playVibrate: string; - playLights: string; - playSound: string; - customPlayFileName: string; - custom: string; - [key: string]: any; -} - -export type PushMessageResult = R; diff --git a/src/api/platform/common/entity/pushPassList.ts b/src/api/platform/common/entity/pushPassList.ts deleted file mode 100644 index aaa3914..0000000 --- a/src/api/platform/common/entity/pushPassList.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { R } from '/#/axios'; -import type { CommonEntity, Page } from '/@/api/common/data/entity'; - -export type PushPassListParams = Page & PushPassList; - -export interface PushPassList extends CommonEntity { - id: string; - fromPushId: string; - toPushId: string; - type: string; -} - -export type PushPassListResult = R; diff --git a/src/api/platform/common/entity/pushRingtone.ts b/src/api/platform/common/entity/pushRingtone.ts new file mode 100644 index 0000000..a6b9901 --- /dev/null +++ b/src/api/platform/common/entity/pushRingtone.ts @@ -0,0 +1,13 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; + +export type PushRingtoneParams = Page & PushRingtone; + +export interface PushRingtone extends CommonEntity { + id: string; + name: string; + ringtone: string; + [key:string]: any; +} + +export type PushRingtoneResult = R; diff --git a/src/api/platform/common/entity/pushThirdParty.ts b/src/api/platform/common/entity/pushThirdParty.ts deleted file mode 100644 index be9a989..0000000 --- a/src/api/platform/common/entity/pushThirdParty.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { R } from '/#/axios'; -import type { CommonEntity, Page } from '/@/api/common/data/entity'; - -export type PushThirdPartyParams = Page & PushThirdParty; - -export interface PushThirdParty extends CommonEntity { - id: string; - statutoryRepName: string; - idCard: string; - entName: string; - licenseFileId: string; - phone: string; - creditCode: string; - userId: string; - detailedAddress: string; - status: string; -} - -export type PushThirdPartyResult = R; diff --git a/src/api/platform/common/entity/pushType.ts b/src/api/platform/common/entity/pushType.ts new file mode 100644 index 0000000..7b2ba0e --- /dev/null +++ b/src/api/platform/common/entity/pushType.ts @@ -0,0 +1,18 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; + +export type PushTypeParams = Page & PushType; + +export interface PushType extends CommonEntity { + id: string; + name: string; + playSound: string; + playVibrate: string; + playLights: string; + playToText: string; + onlineRingtone: string; + offlineRingtone: string; + [key:string]: string; +} + +export type PushTypeResult = R; diff --git a/src/api/platform/common/entity/pushUserManage.ts b/src/api/platform/common/entity/pushUserManage.ts deleted file mode 100644 index 540c878..0000000 --- a/src/api/platform/common/entity/pushUserManage.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { R } from '/#/axios'; -import type { CommonEntity, Page } from '/@/api/common/data/entity'; - -export type PushUserManageParams = Page & PushUserManage; - -export interface PushUserManage extends CommonEntity { - id: string; - toUserId: string; - fromUserId: string; - userName: string; - status: string; - playSound: string; - playVibrate: string; - playLights: string; - type: string; -} - -export type PushUserManageResult = R; diff --git a/src/views/system/user/account/setting/entCertification/index.vue b/src/views/system/user/account/setting/entCertification/index.vue index 7b003b8..233690e 100644 --- a/src/views/system/user/account/setting/entCertification/index.vue +++ b/src/views/system/user/account/setting/entCertification/index.vue @@ -26,14 +26,14 @@ import { Steps } from 'ant-design-vue'; import { useContentHeight } from '/@/hooks/web/useContentHeight'; import { getPushThirdPartyByUserId } from '/@/api/platform/common/controller/pushThirdParty'; - import type { PushThirdParty } from '/@/api/platform/common/entity/pushThirdParty'; + import type { PushEnterprise } from '/@/api/platform/common/entity/pushThirdParty'; import { useUserStore } from '/@/store/modules/user'; const ASteps = Steps; const AStep = Steps.Step; const wrapperRef = ref(null); const current = ref(0); - const pushThirdParty = ref(); + const pushThirdParty = ref(); const userStore = useUserStore(); const userInfoStore = userStore.getUserInfo; const { contentHeight } = useContentHeight(