2025-10-10
时间输出格式修改
This commit is contained in:
@@ -77,7 +77,11 @@ export class ProgramEntity {
|
||||
name: "create_date",
|
||||
nullable: true,
|
||||
comment: "发布时间",
|
||||
default: () => "CURRENT_TIMESTAMP"
|
||||
default: () => "CURRENT_TIMESTAMP",
|
||||
transformer: {
|
||||
to: (value: Date) => value,
|
||||
from: (value: string) => value ? format(value, "yyyy-MM-dd") : null
|
||||
}
|
||||
})
|
||||
createDate: Date | null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user