refactor: 前端时间类型 string → number(对齐 Unix 毫秒契约)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
liuyun 2026-10-11 16:54:19 +08:00
parent 77c9c3fd25
commit 0a1fbf3df2
9 changed files with 12 additions and 12 deletions

View File

@ -14,7 +14,7 @@ export interface AuditLog {
ip: string | null ip: string | null
userAgent: string | null userAgent: string | null
durationMs: number | null durationMs: number | null
createdAt: string createdAt: number
} }
export interface AuditLogQuery { export interface AuditLogQuery {

View File

@ -6,8 +6,8 @@ export interface Config {
key: string key: string
value: string | null value: string | null
remark: string | null remark: string | null
createdAt: string createdAt: number
updatedAt: string updatedAt: number
} }
export interface ConfigListQuery { export interface ConfigListQuery {

View File

@ -8,7 +8,7 @@ export interface DictType {
status: 'enabled' | 'disabled' status: 'enabled' | 'disabled'
builtIn: boolean builtIn: boolean
remark: string | null remark: string | null
createdAt: string createdAt: number
} }
export interface DictItem { export interface DictItem {
@ -21,7 +21,7 @@ export interface DictItem {
status: 'enabled' | 'disabled' status: 'enabled' | 'disabled'
builtIn: boolean builtIn: boolean
colorType: string | null colorType: string | null
createdAt: string createdAt: number
} }
export interface PageResult<T> { export interface PageResult<T> {

View File

@ -9,7 +9,7 @@ export interface LoginLog {
userAgent: string | null userAgent: string | null
status: string status: string
message: string | null message: string | null
createdAt: string createdAt: number
} }
export interface LoginLogQuery { export interface LoginLogQuery {

View File

@ -9,7 +9,7 @@ export interface Org {
leader: string | null leader: string | null
sort: number sort: number
status: 'enabled' | 'disabled' status: 'enabled' | 'disabled'
createdAt: string createdAt: number
} }
/** 组织列表(后端按 sort 升序返回普通数组,前端自行组树)。 */ /** 组织列表(后端按 sort 升序返回普通数组,前端自行组树)。 */

View File

@ -16,7 +16,7 @@ export interface Resource {
icon: string | null icon: string | null
sort: number sort: number
status: 'enabled' | 'disabled' status: 'enabled' | 'disabled'
createdAt: string createdAt: number
} }
export interface ResourceUpsertData { export interface ResourceUpsertData {

View File

@ -10,7 +10,7 @@ export interface Role {
dataScope: DataScope dataScope: DataScope
status: 'enabled' | 'disabled' status: 'enabled' | 'disabled'
remark: string | null remark: string | null
createdAt: string createdAt: number
} }
export interface RoleListQuery { export interface RoleListQuery {

View File

@ -6,7 +6,7 @@ export interface Tenant {
name: string name: string
status: 'enabled' | 'disabled' status: 'enabled' | 'disabled'
remark: string | null remark: string | null
createdAt: string createdAt: number
} }
export interface TenantListQuery { export interface TenantListQuery {

View File

@ -12,8 +12,8 @@ export interface User {
avatar: string | null avatar: string | null
status: UserStatus status: UserStatus
orgCode: string | null orgCode: string | null
createdAt: string createdAt: number
updatedAt: string updatedAt: number
} }
export interface UserListQuery { export interface UserListQuery {