File size: 256 Bytes
325b400
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from pydantic import BaseModel
from typing import List, Union


class ItemRecommend(BaseModel):
    pro_id: int
    product_name: str


class ListItemRecommend(BaseModel):
    user_id: int
    total: int
    list_item: List[ItemRecommend]