就业管理模块

This commit is contained in:
2026-09-22 17:01:14 +08:00
parent 3f3016d9ec
commit f19c1bfa27
6 changed files with 398 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
"""统一响应包装体"""
from typing import Generic, Optional, TypeVar
from pydantic import BaseModel
T = TypeVar("T")
class ApiResponse(BaseModel, Generic[T]):
code: int = 200
msg: str = "success"
data: Optional[T] = None