Files
----/后端源码/yifan.action-ai.cn/app/api/v1/module_common/calendar/schema.py

14 lines
521 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- coding: utf-8 -*-
from typing import List
from pydantic import BaseModel, Field
class CalendarOut(BaseModel):
"""万年历返回数据结构"""
lunar: str = Field(..., description="农历日期,如:腊月 十二")
year: str = Field(..., description="农历年份,如:甲辰年")
solar: str = Field(..., description="公历日期2024.01.22")
yi: List[str] = Field(default=[], description="宜做的事情")
ji: List[str] = Field(default=[], description="忌做的事情")