forked from wangziqi/gongxue-base
fix: harden DingTalk student synchronization
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typeorm';
|
||||
|
||||
export type SyncPlatform = 'dingtalk' | 'wecom';
|
||||
export type SyncPlatform = 'dingtalk_students' | 'dingtalk_attendance' | 'wecom';
|
||||
export type SyncType = 'full' | 'incremental';
|
||||
export type SyncStatus = 'running' | 'success' | 'failed';
|
||||
export type SyncStatus = 'running' | 'success' | 'partial' | 'failed';
|
||||
|
||||
@Entity('sync_logs')
|
||||
export class SyncLog {
|
||||
|
||||
@@ -8,4 +8,10 @@ export class SyncState {
|
||||
|
||||
@Column({ name: 'last_sync_at', type: 'datetime', nullable: true })
|
||||
lastSyncAt: Date | null;
|
||||
|
||||
@Column({ name: 'run_id', type: 'varchar', length: 64, nullable: true })
|
||||
runId: string | null;
|
||||
|
||||
@Column({ name: 'running_since', type: 'datetime', nullable: true })
|
||||
runningSince: Date | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user