13 lines
280 B
Python
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()
|