| | |
| | | REVOKED: 2, |
| | | } as const; |
| | | |
| | | /** 通知模板类型 */ |
| | | export const NOTICE_TYPE = { |
| | | TEXT: 1, |
| | | CARD: 2, |
| | | FILE: 3, |
| | | NEWS: 4, |
| | | IMAGE: 5, |
| | | VIDEO: 6, |
| | | MARKDOWN: 7, |
| | | MULTI_NEWS: 8, |
| | | } as const; |
| | | |
| | | /** 多图文条目 */ |
| | | export interface NoticeArticle { |
| | | id?: number; |
| | | title?: string; |
| | | description?: string; |
| | | linkUrl?: string; |
| | | coverBlobId?: number; |
| | | coverAttachment?: NoticeAttachment; |
| | | sortNo?: number; |
| | | } |
| | | |
| | | /** 通知附件(图片/文件/视频通用) */ |
| | | export interface NoticeAttachment { |
| | | id?: number; |
| | | name?: string; |
| | | originalFilename?: string; |
| | | contentType?: string; |
| | | byteSize?: number; |
| | | url?: string; |
| | | previewURL?: string; |
| | | downloadURL?: string; |
| | | } |
| | | |
| | | /** 通知 */ |
| | | export interface Notice { |
| | | id?: number; |
| | | title?: string; |
| | | content?: string; |
| | | noticeType?: number; |
| | | noticeTypeName?: string; |
| | | summary?: string; |
| | | linkUrl?: string; |
| | | linkBtnText?: string; |
| | | coverUrl?: string; |
| | | /** 旧版单附件字段,兼容历史数据 */ |
| | | fileBlobId?: number; |
| | | /** 旧版单附件文件名 */ |
| | | fileName?: string; |
| | | /** 图片通知的图片 blobId 列表 */ |
| | | imageBlobIds?: number[]; |
| | | /** 图片通知的图片附件列表 */ |
| | | imageAttachmentList?: NoticeAttachment[]; |
| | | /** 附件通知的附件 blobId 列表 */ |
| | | fileBlobIds?: number[]; |
| | | /** 附件通知的附件列表 */ |
| | | fileAttachmentList?: NoticeAttachment[]; |
| | | /** 视频通知的视频 blobId 列表 */ |
| | | videoBlobIds?: number[]; |
| | | /** 视频通知的视频列表 */ |
| | | videoAttachmentList?: NoticeAttachment[]; |
| | | /** 多图文消息的图文列表 */ |
| | | articleList?: NoticeArticle[]; |
| | | /** 成员预览页地址 */ |
| | | previewUrl?: string; |
| | | status?: number; |
| | | statusName?: string; |
| | | pushScope?: number; |
| | |
| | | id: number; |
| | | pushScope?: number; |
| | | pushTarget?: string; |
| | | noticeType?: number; |
| | | summary?: string; |
| | | linkUrl?: string; |
| | | linkBtnText?: string; |
| | | coverUrl?: string; |
| | | fileBlobId?: number; |
| | | fileName?: string; |
| | | imageBlobIds?: number[]; |
| | | fileBlobIds?: number[]; |
| | | videoBlobIds?: number[]; |
| | | articleList?: WxCpNoticeApi.NoticeArticle[]; |
| | | }) { |
| | | return requestClient.post<{ |
| | | success: boolean; |