|
|
@@ -1,6 +1,6 @@
|
|
|
import { z } from '@hono/zod-openapi';
|
|
|
import { UserSchema } from '@d8d/user-module';
|
|
|
-import { AreaSchema } from '@d8d/geo-areas';
|
|
|
+import { getAreaSchema } from '@d8d/geo-areas';
|
|
|
|
|
|
// 状态枚举
|
|
|
export const DeliveryAddressStatusEnum = {
|
|
|
@@ -129,16 +129,16 @@ export const DeliveryAddressSchema = z.object({
|
|
|
user: UserSchema.optional().openapi({
|
|
|
description: '关联用户信息'
|
|
|
}),
|
|
|
- province: AreaSchema.optional().openapi({
|
|
|
+ province: getAreaSchema.optional().openapi({
|
|
|
description: '关联省份信息'
|
|
|
}),
|
|
|
- city: AreaSchema.optional().openapi({
|
|
|
+ city: getAreaSchema.optional().openapi({
|
|
|
description: '关联城市信息'
|
|
|
}),
|
|
|
- district: AreaSchema.optional().openapi({
|
|
|
+ district: getAreaSchema.optional().openapi({
|
|
|
description: '关联区县信息'
|
|
|
}),
|
|
|
- town: AreaSchema.optional().openapi({
|
|
|
+ town: getAreaSchema.optional().openapi({
|
|
|
description: '关联街道信息'
|
|
|
})
|
|
|
});
|