[feat] negodata/backend: 상품·협력사 목록 서버 페이지네이션 + 검색/필터(카테고리·priority) + 상품 카테고리 distinct 엔드포인트
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
4587be5844
commit
1fef405e88
8 files changed
+269
-32
No files matched your search
@@ -4,7 +4,7 @@ from typing import Optional
|
||||
|
||||
from pydantic import ConfigDict
|
||||
|
||||
from common.models.gmodel import Res_WebPacketProtocol, WebPacketProtocol
|
||||
from common.models.gmodel import Res_PageProtocol, Res_WebPacketProtocol, WebPacketProtocol
|
||||
|
||||
|
||||
class SupplierProtocol(WebPacketProtocol):
|
||||
@@ -49,11 +49,16 @@ class Res_Supplier(Res_WebPacketProtocol):
|
||||
supplier: Optional[SupplierData] = None
|
||||
|
||||
|
||||
class Res_SupplierList(Res_WebPacketProtocol):
|
||||
class Res_SupplierList(Res_PageProtocol):
|
||||
suppliers: list[SupplierData] = []
|
||||
total: int = 0
|
||||
page: int = 0
|
||||
size: int = 0
|
||||
|
||||
|
||||
class Req_CheckCodes(SupplierProtocol):
|
||||
codes: list[str] = []
|
||||
|
||||
|
||||
class Res_CheckCodes(Res_WebPacketProtocol):
|
||||
existing: list[str] = [] # codes 중 이미 DB(같은 회사)에 존재하는 코드들
|
||||
|
||||
|
||||
class Res_DeleteSupplier(Res_WebPacketProtocol):
|
||||
|
||||
Reference in new issue
Block a user