From f0e2bdf289c3f8c466b811561ce350ada9ae0945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Mon, 19 Sep 2022 17:28:31 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E9=9D=A2=E8=AF=95=E9=98=B6?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schemas/jobs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schemas/jobs.py b/schemas/jobs.py index 4cf3777..b2b6d3a 100644 --- a/schemas/jobs.py +++ b/schemas/jobs.py @@ -4,6 +4,8 @@ from typing import List from pydantic import BaseModel +from utils import get_uid + class Job(BaseModel): job_id: str = None # 职位的唯一id @@ -68,7 +70,7 @@ class Jobs(BaseModel): class Ins_Job(BaseModel): - job_id: str = str(int(time.time())) # 职位的唯一id + job_id: str = str(get_uid()) # 职位的唯一id job_name: str # 职位名称 job_sector: str # 职位部门 job_nature: int # 职位性质