|
|
@@ -35,6 +35,13 @@ export const AdvertisementSchema = z.object({
|
|
|
}).nullable().optional().openapi({
|
|
|
description: '图片文件信息'
|
|
|
}),
|
|
|
+ advertisementType: z.object({
|
|
|
+ id: z.number().int().positive().openapi({ description: '广告类型ID' }),
|
|
|
+ name: z.string().max(50).openapi({ description: '类型名称', example: '首页轮播' }),
|
|
|
+ code: z.string().max(20).openapi({ description: '类型编码', example: 'home_banner' })
|
|
|
+ }).nullable().optional().openapi({
|
|
|
+ description: '广告类型信息'
|
|
|
+ }),
|
|
|
sort: z.number().int().default(0).openapi({
|
|
|
description: '排序值',
|
|
|
example: 10
|