|
@@ -132,15 +132,15 @@ export const CreateDisabledPersonSchema = BaseDisabledPersonSchema.extend({
|
|
|
description: '是否已婚:1-是,0-否,null-未知',
|
|
description: '是否已婚:1-是,0-否,null-未知',
|
|
|
example: 1
|
|
example: 1
|
|
|
}),
|
|
}),
|
|
|
- nation: z.string().max(20).optional().openapi({
|
|
|
|
|
|
|
+ nation: z.string().max(20).nullish().openapi({
|
|
|
description: '民族',
|
|
description: '民族',
|
|
|
example: '汉族'
|
|
example: '汉族'
|
|
|
}),
|
|
}),
|
|
|
- district: z.string().max(50).optional().openapi({
|
|
|
|
|
|
|
+ district: z.string().max(50).nullish().openapi({
|
|
|
description: '区县级',
|
|
description: '区县级',
|
|
|
example: '东城区'
|
|
example: '东城区'
|
|
|
}),
|
|
}),
|
|
|
- detailedAddress: z.string().max(200).optional().openapi({
|
|
|
|
|
|
|
+ detailedAddress: z.string().max(200).nullish().openapi({
|
|
|
description: '详细地址',
|
|
description: '详细地址',
|
|
|
example: '东城区某街道某号'
|
|
example: '东城区某街道某号'
|
|
|
}),
|
|
}),
|
|
@@ -152,7 +152,7 @@ export const CreateDisabledPersonSchema = BaseDisabledPersonSchema.extend({
|
|
|
description: '在职状态:0-未在职,1-已在职',
|
|
description: '在职状态:0-未在职,1-已在职',
|
|
|
example: 1
|
|
example: 1
|
|
|
}),
|
|
}),
|
|
|
- specificDisability: z.string().max(500).optional().openapi({
|
|
|
|
|
|
|
+ specificDisability: z.string().max(500).nullish().openapi({
|
|
|
description: '具体残疾部位和情况',
|
|
description: '具体残疾部位和情况',
|
|
|
example: '左眼视力0.1,右眼视力0.2,需要助听器'
|
|
example: '左眼视力0.1,右眼视力0.2,需要助听器'
|
|
|
})
|
|
})
|
|
@@ -212,11 +212,11 @@ export const UpdateDisabledPersonSchema = z.object({
|
|
|
description: '是否可直接联系:1-是,0-否',
|
|
description: '是否可直接联系:1-是,0-否',
|
|
|
example: 1
|
|
example: 1
|
|
|
}),
|
|
}),
|
|
|
- isMarried: z.number().int().min(0).max(1).optional().openapi({
|
|
|
|
|
- description: '是否已婚:1-是,0-否',
|
|
|
|
|
|
|
+ isMarried: z.number().int().min(0).max(1).nullable().optional().openapi({
|
|
|
|
|
+ description: '是否已婚:1-是,0-否,null-未知',
|
|
|
example: 1
|
|
example: 1
|
|
|
}),
|
|
}),
|
|
|
- nation: z.string().max(20).optional().openapi({
|
|
|
|
|
|
|
+ nation: z.string().max(20).nullish().openapi({
|
|
|
description: '民族',
|
|
description: '民族',
|
|
|
example: '汉族'
|
|
example: '汉族'
|
|
|
}),
|
|
}),
|
|
@@ -228,11 +228,11 @@ export const UpdateDisabledPersonSchema = z.object({
|
|
|
description: '市级',
|
|
description: '市级',
|
|
|
example: '北京市'
|
|
example: '北京市'
|
|
|
}),
|
|
}),
|
|
|
- district: z.string().max(50).optional().openapi({
|
|
|
|
|
|
|
+ district: z.string().max(50).nullish().openapi({
|
|
|
description: '区县级',
|
|
description: '区县级',
|
|
|
example: '东城区'
|
|
example: '东城区'
|
|
|
}),
|
|
}),
|
|
|
- detailedAddress: z.string().max(200).optional().openapi({
|
|
|
|
|
|
|
+ detailedAddress: z.string().max(200).nullish().openapi({
|
|
|
description: '详细地址',
|
|
description: '详细地址',
|
|
|
example: '东城区某街道某号'
|
|
example: '东城区某街道某号'
|
|
|
}),
|
|
}),
|
|
@@ -244,7 +244,7 @@ export const UpdateDisabledPersonSchema = z.object({
|
|
|
description: '在职状态:0-未在职,1-已在职',
|
|
description: '在职状态:0-未在职,1-已在职',
|
|
|
example: 1
|
|
example: 1
|
|
|
}),
|
|
}),
|
|
|
- specificDisability: z.string().max(500).optional().openapi({
|
|
|
|
|
|
|
+ specificDisability: z.string().max(500).nullish().openapi({
|
|
|
description: '具体残疾部位和情况',
|
|
description: '具体残疾部位和情况',
|
|
|
example: '左眼视力0.1,右眼视力0.2,需要助听器'
|
|
example: '左眼视力0.1,右眼视力0.2,需要助听器'
|
|
|
})
|
|
})
|