mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 09:15:41 +08:00
feat: 新增定时日报与微信发送能力底座
This commit is contained in:
1 parent
62abd872ee
commit
949e6bc868
11 files changed
+786
-2
No files matched your search
@@ -0,0 +1,53 @@
|
||||
export type ScheduledReportRange = 'yesterday' | 'recent24h'
|
||||
export type ScheduledReportExecutionStatus = 'running' | 'success' | 'failed'
|
||||
|
||||
export interface ScheduledReportTask {
|
||||
id: string
|
||||
name: string
|
||||
/** Human-readable group name or WeChat room id. */
|
||||
group: string
|
||||
scheduleTime: string
|
||||
reportRange: ScheduledReportRange
|
||||
/** Current implementation targets one specified WeChat group. */
|
||||
target: string
|
||||
enabled: boolean
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
lastRunAt?: string
|
||||
nextRunAt: string
|
||||
/** Internal idempotency marker for a daily scheduled slot. */
|
||||
lastScheduledSlot?: string
|
||||
}
|
||||
|
||||
export interface ScheduledReportExecution {
|
||||
id: string
|
||||
taskId: string
|
||||
startedAt: string
|
||||
finishedAt?: string
|
||||
status: ScheduledReportExecutionStatus
|
||||
error?: string
|
||||
message?: string
|
||||
scheduledSlot?: string
|
||||
}
|
||||
|
||||
export interface ScheduledReportCreateInput {
|
||||
name: string
|
||||
group: string
|
||||
scheduleTime: string
|
||||
reportRange?: ScheduledReportRange
|
||||
target?: string
|
||||
enabled?: boolean
|
||||
}
|
||||
|
||||
export type ScheduledReportUpdateInput = Partial<
|
||||
Pick<
|
||||
ScheduledReportCreateInput,
|
||||
'name' | 'group' | 'scheduleTime' | 'reportRange' | 'target' | 'enabled'
|
||||
>
|
||||
>
|
||||
|
||||
export interface ScheduledReportResult<T> {
|
||||
success: boolean
|
||||
data?: T
|
||||
error?: string
|
||||
}
|
||||
Reference in new issue
Block a user