Browse Source

refactor: 重构接口

master
wangxiang 2 years ago
parent
commit
78daf6f521
  1. 4
      src/api/platform/common/controller/pushApplication.ts
  2. 25
      src/api/platform/common/controller/pushBlacklist.ts
  3. 25
      src/api/platform/common/controller/pushChatMessage.ts
  4. 23
      src/api/platform/common/controller/pushConcernFan.ts
  5. 20
      src/api/platform/common/controller/pushConcernFanType.ts
  6. 25
      src/api/platform/common/controller/pushCustomType.ts
  7. 26
      src/api/platform/common/controller/pushEnterprise.ts
  8. 24
      src/api/platform/common/controller/pushFile.ts
  9. 25
      src/api/platform/common/controller/pushMessage.ts
  10. 25
      src/api/platform/common/controller/pushPassList.ts
  11. 20
      src/api/platform/common/controller/pushRingtone.ts
  12. 31
      src/api/platform/common/controller/pushThirdParty.ts
  13. 20
      src/api/platform/common/controller/pushType.ts
  14. 25
      src/api/platform/common/controller/pushUserManage.ts
  15. 2
      src/api/platform/common/entity/pushApplication.ts
  16. 31
      src/api/platform/common/entity/pushBlacklist.ts
  17. 27
      src/api/platform/common/entity/pushChatMessage.ts
  18. 34
      src/api/platform/common/entity/pushConcernFan.ts
  19. 21
      src/api/platform/common/entity/pushConcernFanType.ts
  20. 15
      src/api/platform/common/entity/pushCustomType.ts
  21. 20
      src/api/platform/common/entity/pushEnterprise.ts
  22. 17
      src/api/platform/common/entity/pushFile.ts
  23. 26
      src/api/platform/common/entity/pushMessage.ts
  24. 13
      src/api/platform/common/entity/pushPassList.ts
  25. 13
      src/api/platform/common/entity/pushRingtone.ts
  26. 19
      src/api/platform/common/entity/pushThirdParty.ts
  27. 18
      src/api/platform/common/entity/pushType.ts
  28. 18
      src/api/platform/common/entity/pushUserManage.ts
  29. 4
      src/views/system/user/account/setting/entCertification/index.vue

4
src/api/platform/common/controller/pushApplication.ts

@ -5,7 +5,7 @@
*/ */
import type { PushApplication, PushApplicationParams, PushApplicationResult } from '/@/api/platform/common/entity/pushApplication'; import type { PushApplication, PushApplicationParams, PushApplicationResult } from '/@/api/platform/common/entity/pushApplication';
import { defHttp } from '/@/utils/http/axios'; 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 { enum Api {
list = '/common_proxy/common/pushApplication/list', list = '/common_proxy/common/pushApplication/list',
@ -20,7 +20,7 @@ export const listPushApplication = (params?: Partial<PushApplicationParams>) =>
export const addPushApplication = (params: Partial<PushApplication>) => defHttp.post({ url: Api.add, data: params }); export const addPushApplication = (params: Partial<PushApplication>) => defHttp.post({ url: Api.add, data: params });
export const sendMessage = (params: Partial<PushMessage>) => defHttp.post({ url: Api.send, data: params }); export const sendMessage = (params: Partial<PushChatMessage>) => defHttp.post({ url: Api.send, data: params });
export const editPushApplication = (params: Partial<PushApplication>) => defHttp.put({ url: Api.edit, data: params }); export const editPushApplication = (params: Partial<PushApplication>) => defHttp.put({ url: Api.edit, data: params });

25
src/api/platform/common/controller/pushBlacklist.ts

@ -0,0 +1,25 @@
/**
* api模板规范代码参考,
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> 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<PushBlacklistParams>) => defHttp.get<PushBlacklistResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushBlacklist = (params: Partial<PushBlacklist>) => defHttp.post({ url: Api.add, data: params });
export const editPushBlacklist = (params: Partial<PushBlacklist>) => defHttp.put({ url: Api.edit, data: params });
export const getPushBlacklist = (params: Partial<PushBlacklist>) => defHttp.get<PushBlacklist>({ url: Api.getById, params });
export const delPushBlacklist = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

25
src/api/platform/common/controller/pushChatMessage.ts

@ -0,0 +1,25 @@
/**
* api模板规范代码参考,
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> 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<PushChatMessageParams>) => defHttp.get<PushChatMessageResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushChatMessage = (params: Partial<PushChatMessage>) => defHttp.post({ url: Api.add, data: params });
export const editPushChatMessage = (params: Partial<PushChatMessage>) => defHttp.put({ url: Api.edit, data: params });
export const getPushChatMessage = (id: string) => defHttp.get<PushChatMessage>({ url: `${Api.get}/${id}` });
export const delPushChatMessage = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

23
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<PushConcernFanParams>) => defHttp.get<PushConcernFanResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushConcernFan = (params: Partial<PushConcernFan>) => defHttp.post({ url: Api.add, data: params });
export const editPushConcernFan = (params: Partial<PushConcernFan>) => defHttp.put({ url: Api.edit, data: params });
export const getPushConcernFan = (id: string) => defHttp.get<PushConcernFan>({ 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}` });

20
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<PushConcernFanTypeParams>) => defHttp.get<PushConcernFanTypeResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushConcernFanType = (params: Partial<PushConcernFanType>) => defHttp.post({ url: Api.add, data: params });
export const editPushConcernFanType = (params: Partial<PushConcernFanType>) => defHttp.put({ url: Api.edit, data: params });
export const getPushConcernFanType = (id: string) => defHttp.get<PushConcernFanType>({ url: `${Api.get}/${id}` });
export const delPushConcernFanType = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

25
src/api/platform/common/controller/pushCustomType.ts

@ -1,25 +0,0 @@
/**
* api模板规范代码参考,
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> 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<PushCustomTypeParams>) => defHttp.get<PushCustomTypeResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushCustomType = (params: Partial<PushCustomType>) => defHttp.post({ url: Api.add, data: params });
export const editPushCustomType = (params: Partial<PushCustomType>) => defHttp.put({ url: Api.edit, data: params });
export const getPushCustomType = (id: string) => defHttp.get<PushCustomType>({ url: `${Api.get}/${id}` });
export const delPushCustomType = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

26
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<PushChatMessageParams>) => defHttp.get<PushChatMessageResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushEnterprise = (params: Partial<PushChatMessage>) => defHttp.post({ url: Api.add, data: params });
export const editPushEnterprise = (params: Partial<PushChatMessage>) => defHttp.put({ url: Api.edit, data: params });
export const getPushEnterprise = (id: string) => defHttp.get<PushChatMessage>({ url: `${Api.get}/${id}` });
export const getPushEnterpriseByUserId = (id: string) => defHttp.get<PushChatMessage>({ url: `${Api.getByUserId}/${id}` });
export const revokeAuthPushEnterprise = () => defHttp.delete({ url: Api.revokeAuth });
export const delPushEnterprise = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

24
src/api/platform/common/controller/pushFile.ts

@ -1,24 +0,0 @@
/**
* api模板规范代码参考,
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> 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<PushFileParams>) => defHttp.get<PushFileResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const commonUpload = (params: UploadFileParams, onUploadProgress: (progressEvent: ProgressEvent) => void) =>
defHttp.uploadFile<UploadResult>({ url: apiUrl + Api.upload, onUploadProgress }, params);
export const delPushFile = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

25
src/api/platform/common/controller/pushMessage.ts

@ -1,25 +0,0 @@
/**
* api模板规范代码参考,
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> 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<PushMessageParams>) => defHttp.get<PushMessageResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushMessage = (params: Partial<PushMessage>) => defHttp.post({ url: Api.add, data: params });
export const editPushMessage = (params: Partial<PushMessage>) => defHttp.put({ url: Api.edit, data: params });
export const getPushMessage = (id: string) => defHttp.get<PushMessage>({ url: `${Api.get}/${id}` });
export const delPushMessage = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

25
src/api/platform/common/controller/pushPassList.ts

@ -1,25 +0,0 @@
/**
* api模板规范代码参考,
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> 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<PushPassListParams>) => defHttp.get<PushPassListResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushPassList = (params: Partial<PushPassList>) => defHttp.post({ url: Api.add, data: params });
export const editPushPassList = (params: Partial<PushPassList>) => defHttp.put({ url: Api.edit, data: params });
export const getPushPassList = (id: string) => defHttp.get<PushPassList>({ url: `${Api.get}/${id}` });
export const delPushPassList = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

20
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<PushRingtoneParams>) => defHttp.get<PushRingtoneResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushRingtone = (params: Partial<PushRingtone>) => defHttp.post({ url: Api.add, data: params });
export const editPushRingtone = (params: Partial<PushRingtone>) => defHttp.put({ url: Api.edit, data: params });
export const getPushRingtone = (id: string) => defHttp.get<PushRingtone>({ url: `${Api.get}/${id}` });
export const delPushRingtone = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

31
src/api/platform/common/controller/pushThirdParty.ts

@ -1,31 +0,0 @@
/**
* api模板规范代码参考,
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> 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<PushThirdPartyParams>) => defHttp.get<PushThirdPartyResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushThirdParty = (params: Partial<PushThirdParty>) => defHttp.post({ url: Api.add, data: params });
export const editPushThirdParty = (params: Partial<PushThirdParty>) => defHttp.put({ url: Api.edit, data: params });
export const getPushThirdParty = (id: string) => defHttp.get<PushThirdParty>({ url: `${Api.get}/${id}` });
export const getPushThirdPartyByUserId = (id: string) => defHttp.get<PushThirdParty>({ url: `${Api.getByUserId}/${id}` });
export const delRevokeAuth = () => defHttp.delete({ url: Api.revokeAuth });
export const delPushThirdParty = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

20
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<PushTypeParams>) => defHttp.get<PushTypeResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushType = (params: Partial<PushType>) => defHttp.post({ url: Api.add, data: params });
export const editPushType = (params: Partial<PushType>) => defHttp.put({ url: Api.edit, data: params });
export const getPushType = (id: string) => defHttp.get<PushType>({ url: `${Api.get}/${id}` });
export const delPushType = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

25
src/api/platform/common/controller/pushUserManage.ts

@ -1,25 +0,0 @@
/**
* api模板规范代码参考,
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> 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<PushUserManageParams>) => defHttp.get<PushUserManageResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const addPushUserManage = (params: Partial<PushUserManage>) => defHttp.post({ url: Api.add, data: params });
export const editPushUserManage = (params: Partial<PushUserManage>) => defHttp.put({ url: Api.edit, data: params });
export const getPushUserManage = (id: string) => defHttp.get<PushUserManage>({ url: `${Api.get}/${id}` });
export const delPushUserManage = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` });

2
src/api/platform/common/entity/pushApplication.ts

@ -7,7 +7,7 @@ export interface PushApplication extends CommonEntity {
id: string; id: string;
name: string; name: string;
status: string; status: string;
ip: string; ignoreIp: string;
messageSecret: string; messageSecret: string;
} }

31
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<PushBlacklist[]>;

27
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<PushChatMessage[]>;

34
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<PushConcernFan[]>;

21
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<PushConcernFanType[]>;

15
src/api/platform/common/entity/pushCustomType.ts

@ -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<PushCustomType[]>;

20
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<PushEnterprise[]>;

17
src/api/platform/common/entity/pushFile.ts

@ -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<PushFile[]>;

26
src/api/platform/common/entity/pushMessage.ts

@ -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<PushMessage[]>;

13
src/api/platform/common/entity/pushPassList.ts

@ -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<PushPassList[]>;

13
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<PushRingtone[]>;

19
src/api/platform/common/entity/pushThirdParty.ts

@ -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<PushThirdParty[]>;

18
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<PushType[]>;

18
src/api/platform/common/entity/pushUserManage.ts

@ -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<PushUserManage[]>;

4
src/views/system/user/account/setting/entCertification/index.vue

@ -26,14 +26,14 @@
import { Steps } from 'ant-design-vue'; import { Steps } from 'ant-design-vue';
import { useContentHeight } from '/@/hooks/web/useContentHeight'; import { useContentHeight } from '/@/hooks/web/useContentHeight';
import { getPushThirdPartyByUserId } from '/@/api/platform/common/controller/pushThirdParty'; 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'; import { useUserStore } from '/@/store/modules/user';
const ASteps = Steps; const ASteps = Steps;
const AStep = Steps.Step; const AStep = Steps.Step;
const wrapperRef = ref(null); const wrapperRef = ref(null);
const current = ref(0); const current = ref(0);
const pushThirdParty = ref<PushThirdParty>(); const pushThirdParty = ref<PushEnterprise>();
const userStore = useUserStore(); const userStore = useUserStore();
const userInfoStore = userStore.getUserInfo; const userInfoStore = userStore.getUserInfo;
const { contentHeight } = useContentHeight( const { contentHeight } = useContentHeight(

Loading…
Cancel
Save