- 新增 MyMaterialUsageQuery 查询参数 schema - 新增 MaterialUsageResponse 响应 schema(含 requisitionStatus 字段) - 新增 MyMaterialUsageListResponse 列表响应 schema Co-authored-by: Cursor <cursoragent@cursor.com>
362 lines
9.2 KiB
Python
362 lines
9.2 KiB
Python
"""Schema模块"""
|
|
from app.schemas.common import (
|
|
PaginationParams,
|
|
PaginationResult,
|
|
IdInput,
|
|
StatusInput,
|
|
DeleteInput
|
|
)
|
|
from app.schemas.region import (
|
|
RegionBase,
|
|
RegionCreate,
|
|
RegionUpdate,
|
|
RegionResponse,
|
|
RegionListResponse
|
|
)
|
|
from app.schemas.category import (
|
|
CategoryBase,
|
|
CategoryCreate,
|
|
CategoryUpdate,
|
|
CategoryTreeNode,
|
|
CategoryResponse,
|
|
CategoryListResponse
|
|
)
|
|
from app.schemas.unit import (
|
|
UnitBase,
|
|
UnitCreate,
|
|
UnitUpdate,
|
|
UnitResponse,
|
|
UnitListResponse
|
|
)
|
|
from app.schemas.user import (
|
|
UserBase,
|
|
UserCreate,
|
|
UserUpdate,
|
|
UserResponse,
|
|
UserListResponse,
|
|
LoginRequest,
|
|
LoginResponse,
|
|
ChangePasswordRequest,
|
|
ResetPasswordRequest
|
|
)
|
|
from app.schemas.product import (
|
|
ProductUnitBase,
|
|
ProductUnitCreate,
|
|
ProductUnitResponse,
|
|
ProductCategoryBase,
|
|
ProductCategoryCreate,
|
|
ProductCategoryResponse,
|
|
ProductBase,
|
|
ProductCreate,
|
|
ProductUpdate,
|
|
ProductResponse
|
|
)
|
|
from app.schemas.product_banner import (
|
|
ProductBannerBase,
|
|
ProductBannerCreate,
|
|
ProductBannerCreateBatch,
|
|
ProductBannerUpdate,
|
|
ProductBannerSortUpdate,
|
|
ProductBannerResponse,
|
|
ProductBannerListResponse
|
|
)
|
|
from app.schemas.product_detail_media import (
|
|
ProductDetailMediaBase,
|
|
ProductDetailMediaCreate,
|
|
ProductDetailMediaCreateBatch,
|
|
ProductDetailMediaUpdate,
|
|
ProductDetailMediaResponse,
|
|
ProductDetailMediaListResponse
|
|
)
|
|
from app.schemas.product_parameter import (
|
|
ProductParameterBase,
|
|
ProductParameterCreate,
|
|
ProductParameterUpdate,
|
|
ProductParameterResponse,
|
|
ProductParameterListResponse,
|
|
ProductParameterSimpleResponse
|
|
)
|
|
from app.schemas.category_parameter import (
|
|
CategoryParameterBase,
|
|
CategoryParameterItem,
|
|
CategoryParameterCreate,
|
|
CategoryParameterUpdate,
|
|
CategoryParameterBatchUpdate,
|
|
CategoryParameterResponse,
|
|
CategoryParameterWithDetailResponse,
|
|
CategoryParameterListResponse
|
|
)
|
|
from app.schemas.product_parameter_value import (
|
|
ProductParameterValueBase,
|
|
ProductParameterValueCreate,
|
|
ProductParameterValueUpdate,
|
|
ProductParameterValueBatchSave,
|
|
ProductParameterValueResponse,
|
|
ProductParameterValueListResponse,
|
|
ProductParameterValueWithParameterResponse
|
|
)
|
|
from app.schemas.product_review import (
|
|
ProductReviewBase,
|
|
ProductReviewCreate,
|
|
ProductReviewUpdate,
|
|
ProductReviewReplyRequest,
|
|
ProductReviewRejectRequest,
|
|
ProductReviewTopRequest,
|
|
ProductReviewResponse,
|
|
ProductReviewDetailResponse,
|
|
ProductReviewListResponse,
|
|
ProductReviewStatisticsResponse,
|
|
ProductReviewAdminListRequest,
|
|
MiniReviewListRequest
|
|
)
|
|
from app.schemas.product_review_media import (
|
|
ProductReviewMediaBase,
|
|
ProductReviewMediaCreate,
|
|
ProductReviewMediaCreateBatch,
|
|
ProductReviewMediaUpdate,
|
|
ProductReviewMediaResponse,
|
|
ProductReviewMediaListResponse
|
|
)
|
|
from app.schemas.inquiry import (
|
|
InquiryBase,
|
|
InquiryCreate,
|
|
InquiryUpdate,
|
|
InquiryResponse,
|
|
InquiryDetailResponse,
|
|
InquiryListResponse,
|
|
InquiryItemBase,
|
|
InquiryItemCreate,
|
|
InquiryItemResponse,
|
|
InquiryStatusResponse
|
|
)
|
|
from app.schemas.quotation import (
|
|
QuotationBase,
|
|
QuotationCreate,
|
|
QuotationUpdate,
|
|
QuotationResponse,
|
|
QuotationDetailResponse,
|
|
QuotationListResponse,
|
|
QuotationItemBase,
|
|
QuotationItemCreate,
|
|
QuotationItemResponse,
|
|
QuotationStatusResponse,
|
|
QuotationWithSupplierResponse,
|
|
QuotationWithItemsResponse
|
|
)
|
|
from app.schemas.price_list import (
|
|
PriceListBase,
|
|
PriceListCreate,
|
|
PriceListUpdate,
|
|
PriceListResponse,
|
|
PriceListDetailResponse,
|
|
PriceListListResponse,
|
|
PriceListItemBase,
|
|
PriceListItemCreate,
|
|
PriceListItemResponse,
|
|
PriceListPublishRequest,
|
|
PriceListInvalidateRequest,
|
|
PriceListStatusResponse,
|
|
ProductPriceResponse,
|
|
ProductPriceHistoryItem,
|
|
ProductPriceHistoryResponse,
|
|
PriceListGenerateRequest
|
|
)
|
|
from app.schemas.order import (
|
|
OrderCreate,
|
|
OrderPreviewRequest,
|
|
OrderResponse,
|
|
OrderDetailResponse,
|
|
OrderListResponse,
|
|
OrderPreviewResponse,
|
|
OrderItemCreate,
|
|
OrderItemResponse,
|
|
OrderCancelRequest,
|
|
OrderDirectCancelRequest,
|
|
OrderReviewCancelRequest,
|
|
OrderStatusResponse,
|
|
OrderStatusLogResponse,
|
|
DeliveryProgressResponse
|
|
)
|
|
from app.schemas.delivery import (
|
|
DeliveryTaskResponse,
|
|
DeliveryTaskDetailResponse,
|
|
DeliveryTaskListResponse,
|
|
DeliveryWarningListResponse,
|
|
DeliveryTaskItemResponse,
|
|
DeliveryAssignRequest,
|
|
DeliveryAssignBatchRequest,
|
|
DeliveryPickupRequest,
|
|
DeliveryDeliverItem,
|
|
DeliveryDeliverRequest,
|
|
DeliveryCancelRequest,
|
|
DeliveryReassignRequest,
|
|
DeliveryStatusResponse,
|
|
DeliveryTaskStatistics,
|
|
DeliveryAttachmentResponse,
|
|
DeliveryCompleteRequest
|
|
)
|
|
from app.schemas.material import (
|
|
MyMaterialUsageQuery,
|
|
MaterialUsageResponse,
|
|
MyMaterialUsageListResponse
|
|
)
|
|
|
|
__all__ = [
|
|
"PaginationParams",
|
|
"PaginationResult",
|
|
"IdInput",
|
|
"StatusInput",
|
|
"DeleteInput",
|
|
"RegionBase",
|
|
"RegionCreate",
|
|
"RegionUpdate",
|
|
"RegionResponse",
|
|
"RegionListResponse",
|
|
"CategoryBase",
|
|
"CategoryCreate",
|
|
"CategoryUpdate",
|
|
"CategoryTreeNode",
|
|
"CategoryResponse",
|
|
"CategoryListResponse",
|
|
"UnitBase",
|
|
"UnitCreate",
|
|
"UnitUpdate",
|
|
"UnitResponse",
|
|
"UnitListResponse",
|
|
"UserBase",
|
|
"UserCreate",
|
|
"UserUpdate",
|
|
"UserResponse",
|
|
"UserListResponse",
|
|
"LoginRequest",
|
|
"LoginResponse",
|
|
"ChangePasswordRequest",
|
|
"ResetPasswordRequest",
|
|
"InquiryBase",
|
|
"InquiryCreate",
|
|
"InquiryUpdate",
|
|
"InquiryResponse",
|
|
"InquiryDetailResponse",
|
|
"InquiryListResponse",
|
|
"InquiryItemBase",
|
|
"InquiryItemCreate",
|
|
"InquiryItemResponse",
|
|
"InquiryStatusResponse",
|
|
"QuotationBase",
|
|
"QuotationCreate",
|
|
"QuotationUpdate",
|
|
"QuotationResponse",
|
|
"QuotationDetailResponse",
|
|
"QuotationListResponse",
|
|
"QuotationItemBase",
|
|
"QuotationItemCreate",
|
|
"QuotationItemResponse",
|
|
"QuotationStatusResponse",
|
|
"QuotationWithSupplierResponse",
|
|
"QuotationWithItemsResponse",
|
|
"PriceListBase",
|
|
"PriceListCreate",
|
|
"PriceListUpdate",
|
|
"PriceListResponse",
|
|
"PriceListDetailResponse",
|
|
"PriceListListResponse",
|
|
"PriceListItemBase",
|
|
"PriceListItemCreate",
|
|
"PriceListItemResponse",
|
|
"PriceListPublishRequest",
|
|
"PriceListInvalidateRequest",
|
|
"PriceListStatusResponse",
|
|
"ProductPriceResponse",
|
|
"ProductPriceHistoryItem",
|
|
"ProductPriceHistoryResponse",
|
|
"PriceListGenerateRequest",
|
|
"OrderCreate",
|
|
"OrderPreviewRequest",
|
|
"OrderResponse",
|
|
"OrderDetailResponse",
|
|
"OrderListResponse",
|
|
"OrderPreviewResponse",
|
|
"OrderItemCreate",
|
|
"OrderItemResponse",
|
|
"OrderCancelRequest",
|
|
"OrderDirectCancelRequest",
|
|
"OrderReviewCancelRequest",
|
|
"OrderStatusResponse",
|
|
"OrderStatusLogResponse",
|
|
"DeliveryProgressResponse",
|
|
"DeliveryTaskResponse",
|
|
"DeliveryTaskDetailResponse",
|
|
"DeliveryTaskListResponse",
|
|
"DeliveryWarningListResponse",
|
|
"DeliveryTaskItemResponse",
|
|
"DeliveryAssignRequest",
|
|
"DeliveryAssignBatchRequest",
|
|
"DeliveryPickupRequest",
|
|
"DeliveryDeliverItem",
|
|
"DeliveryDeliverRequest",
|
|
"DeliveryCancelRequest",
|
|
"DeliveryReassignRequest",
|
|
"DeliveryStatusResponse",
|
|
"DeliveryTaskStatistics",
|
|
"DeliveryAttachmentResponse",
|
|
# 商品多媒体
|
|
"ProductBannerBase",
|
|
"ProductBannerCreate",
|
|
"ProductBannerCreateBatch",
|
|
"ProductBannerUpdate",
|
|
"ProductBannerSortUpdate",
|
|
"ProductBannerResponse",
|
|
"ProductBannerListResponse",
|
|
"ProductDetailMediaBase",
|
|
"ProductDetailMediaCreate",
|
|
"ProductDetailMediaCreateBatch",
|
|
"ProductDetailMediaUpdate",
|
|
"ProductDetailMediaResponse",
|
|
"ProductDetailMediaListResponse",
|
|
# 商品参数
|
|
"ProductParameterBase",
|
|
"ProductParameterCreate",
|
|
"ProductParameterUpdate",
|
|
"ProductParameterResponse",
|
|
"ProductParameterListResponse",
|
|
"ProductParameterSimpleResponse",
|
|
"CategoryParameterBase",
|
|
"CategoryParameterItem",
|
|
"CategoryParameterCreate",
|
|
"CategoryParameterUpdate",
|
|
"CategoryParameterBatchUpdate",
|
|
"CategoryParameterResponse",
|
|
"CategoryParameterWithDetailResponse",
|
|
"CategoryParameterListResponse",
|
|
"ProductParameterValueBase",
|
|
"ProductParameterValueCreate",
|
|
"ProductParameterValueUpdate",
|
|
"ProductParameterValueBatchSave",
|
|
"ProductParameterValueResponse",
|
|
"ProductParameterValueListResponse",
|
|
"ProductParameterValueWithParameterResponse",
|
|
# 售后评价
|
|
"ProductReviewBase",
|
|
"ProductReviewCreate",
|
|
"ProductReviewUpdate",
|
|
"ProductReviewReplyRequest",
|
|
"ProductReviewRejectRequest",
|
|
"ProductReviewTopRequest",
|
|
"ProductReviewResponse",
|
|
"ProductReviewDetailResponse",
|
|
"ProductReviewListResponse",
|
|
"ProductReviewStatisticsResponse",
|
|
"ProductReviewAdminListRequest",
|
|
"MiniReviewListRequest",
|
|
"ProductReviewMediaBase",
|
|
"ProductReviewMediaCreate",
|
|
"ProductReviewMediaCreateBatch",
|
|
"ProductReviewMediaUpdate",
|
|
"ProductReviewMediaResponse",
|
|
"ProductReviewMediaListResponse",
|
|
# 市场物料
|
|
"MyMaterialUsageQuery",
|
|
"MaterialUsageResponse",
|
|
"MyMaterialUsageListResponse",
|
|
]
|