更新首页

This commit is contained in:
cheney
2026-08-06 16:41:47 +08:00
parent 547181d333
commit 4d02439ecb
32 changed files with 5470 additions and 93 deletions
+31 -1
View File
@@ -40,6 +40,7 @@ export type NewsMinAggregateOutputType = {
id: number | null
title: string | null
summary: string | null
content: string | null
source: string | null
url: string | null
publishedAt: Date | null
@@ -51,6 +52,7 @@ export type NewsMaxAggregateOutputType = {
id: number | null
title: string | null
summary: string | null
content: string | null
source: string | null
url: string | null
publishedAt: Date | null
@@ -62,6 +64,7 @@ export type NewsCountAggregateOutputType = {
id: number
title: number
summary: number
content: number
source: number
url: number
publishedAt: number
@@ -85,6 +88,7 @@ export type NewsMinAggregateInputType = {
id?: true
title?: true
summary?: true
content?: true
source?: true
url?: true
publishedAt?: true
@@ -96,6 +100,7 @@ export type NewsMaxAggregateInputType = {
id?: true
title?: true
summary?: true
content?: true
source?: true
url?: true
publishedAt?: true
@@ -107,6 +112,7 @@ export type NewsCountAggregateInputType = {
id?: true
title?: true
summary?: true
content?: true
source?: true
url?: true
publishedAt?: true
@@ -205,6 +211,7 @@ export type NewsGroupByOutputType = {
id: number
title: string
summary: string
content: string | null
source: string
url: string
publishedAt: Date
@@ -239,6 +246,7 @@ export type NewsWhereInput = {
id?: Prisma.IntFilter<"News"> | number
title?: Prisma.StringFilter<"News"> | string
summary?: Prisma.StringFilter<"News"> | string
content?: Prisma.StringNullableFilter<"News"> | string | null
source?: Prisma.StringFilter<"News"> | string
url?: Prisma.StringFilter<"News"> | string
publishedAt?: Prisma.DateTimeFilter<"News"> | Date | string
@@ -250,6 +258,7 @@ export type NewsOrderByWithRelationInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
summary?: Prisma.SortOrder
content?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.SortOrder
url?: Prisma.SortOrder
publishedAt?: Prisma.SortOrder
@@ -266,6 +275,7 @@ export type NewsWhereUniqueInput = Prisma.AtLeast<{
NOT?: Prisma.NewsWhereInput | Prisma.NewsWhereInput[]
title?: Prisma.StringFilter<"News"> | string
summary?: Prisma.StringFilter<"News"> | string
content?: Prisma.StringNullableFilter<"News"> | string | null
source?: Prisma.StringFilter<"News"> | string
url?: Prisma.StringFilter<"News"> | string
publishedAt?: Prisma.DateTimeFilter<"News"> | Date | string
@@ -277,6 +287,7 @@ export type NewsOrderByWithAggregationInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
summary?: Prisma.SortOrder
content?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.SortOrder
url?: Prisma.SortOrder
publishedAt?: Prisma.SortOrder
@@ -296,6 +307,7 @@ export type NewsScalarWhereWithAggregatesInput = {
id?: Prisma.IntWithAggregatesFilter<"News"> | number
title?: Prisma.StringWithAggregatesFilter<"News"> | string
summary?: Prisma.StringWithAggregatesFilter<"News"> | string
content?: Prisma.StringNullableWithAggregatesFilter<"News"> | string | null
source?: Prisma.StringWithAggregatesFilter<"News"> | string
url?: Prisma.StringWithAggregatesFilter<"News"> | string
publishedAt?: Prisma.DateTimeWithAggregatesFilter<"News"> | Date | string
@@ -306,6 +318,7 @@ export type NewsScalarWhereWithAggregatesInput = {
export type NewsCreateInput = {
title: string
summary?: string
content?: string | null
source?: string
url?: string
publishedAt: Date | string
@@ -317,6 +330,7 @@ export type NewsUncheckedCreateInput = {
id?: number
title: string
summary?: string
content?: string | null
source?: string
url?: string
publishedAt: Date | string
@@ -327,6 +341,7 @@ export type NewsUncheckedCreateInput = {
export type NewsUpdateInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
summary?: Prisma.StringFieldUpdateOperationsInput | string
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
url?: Prisma.StringFieldUpdateOperationsInput | string
publishedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -338,6 +353,7 @@ export type NewsUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
summary?: Prisma.StringFieldUpdateOperationsInput | string
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
url?: Prisma.StringFieldUpdateOperationsInput | string
publishedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -349,6 +365,7 @@ export type NewsCreateManyInput = {
id?: number
title: string
summary?: string
content?: string | null
source?: string
url?: string
publishedAt: Date | string
@@ -359,6 +376,7 @@ export type NewsCreateManyInput = {
export type NewsUpdateManyMutationInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
summary?: Prisma.StringFieldUpdateOperationsInput | string
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
url?: Prisma.StringFieldUpdateOperationsInput | string
publishedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -370,6 +388,7 @@ export type NewsUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
summary?: Prisma.StringFieldUpdateOperationsInput | string
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
url?: Prisma.StringFieldUpdateOperationsInput | string
publishedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -392,6 +411,7 @@ export type NewsCountOrderByAggregateInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
summary?: Prisma.SortOrder
content?: Prisma.SortOrder
source?: Prisma.SortOrder
url?: Prisma.SortOrder
publishedAt?: Prisma.SortOrder
@@ -408,6 +428,7 @@ export type NewsMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
summary?: Prisma.SortOrder
content?: Prisma.SortOrder
source?: Prisma.SortOrder
url?: Prisma.SortOrder
publishedAt?: Prisma.SortOrder
@@ -419,6 +440,7 @@ export type NewsMinOrderByAggregateInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
summary?: Prisma.SortOrder
content?: Prisma.SortOrder
source?: Prisma.SortOrder
url?: Prisma.SortOrder
publishedAt?: Prisma.SortOrder
@@ -431,12 +453,17 @@ export type NewsSumOrderByAggregateInput = {
impactRank?: Prisma.SortOrder
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type NewsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
title?: boolean
summary?: boolean
content?: boolean
source?: boolean
url?: boolean
publishedAt?: boolean
@@ -450,6 +477,7 @@ export type NewsSelectScalar = {
id?: boolean
title?: boolean
summary?: boolean
content?: boolean
source?: boolean
url?: boolean
publishedAt?: boolean
@@ -457,7 +485,7 @@ export type NewsSelectScalar = {
createdAt?: boolean
}
export type NewsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "summary" | "source" | "url" | "publishedAt" | "impactRank" | "createdAt", ExtArgs["result"]["news"]>
export type NewsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "summary" | "content" | "source" | "url" | "publishedAt" | "impactRank" | "createdAt", ExtArgs["result"]["news"]>
export type $NewsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "News"
@@ -466,6 +494,7 @@ export type $NewsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
id: number
title: string
summary: string
content: string | null
source: string
url: string
publishedAt: Date
@@ -843,6 +872,7 @@ export interface NewsFieldRefs {
readonly id: Prisma.FieldRef<"News", 'Int'>
readonly title: Prisma.FieldRef<"News", 'String'>
readonly summary: Prisma.FieldRef<"News", 'String'>
readonly content: Prisma.FieldRef<"News", 'String'>
readonly source: Prisma.FieldRef<"News", 'String'>
readonly url: Prisma.FieldRef<"News", 'String'>
readonly publishedAt: Prisma.FieldRef<"News", 'DateTime'>