Explorar el Código

refactor(api): replace recall_cust_count/delivery_count with cust_code_list in RecommendRequest

Sherlock hace 1 semana
padre
commit
671e75167b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      api/request_body.py

+ 2 - 2
api/request_body.py

@@ -1,11 +1,11 @@
 from pydantic import BaseModel
+from typing import List
 
 # 定义请求体
 class RecommendRequest(BaseModel):
     city_uuid: str              # 城市id
     product_code: str           # 卷烟编码
-    recall_cust_count: int      # 推荐的商户数量
-    delivery_count: int         # 投放的品规数量
+    cust_code_list: List[str]   # 核心零售户ID列表
     cultivacation_id: str       # 投放策略id
     limit_cycle_name: str       # 投放周期名称