prs_server/schemas/count_in_worker.py
2022-07-28 15:04:03 +08:00

13 lines
280 B
Python

from typing import Dict, List, Union, Any
from pydantic import BaseModel
from datetime import datetime
def get_id():
return datetime.strftime(datetime.now(), '%Y-%m')
# 统计在职人员数据添加格式
class CountInWorkerQuery(BaseModel):
count_id: str = get_id()