sdk/oapiSdk/lark_oapi/api/ehr/v1/model/education.py

61 lines
1.6 KiB
Python
Raw Permalink Normal View History

2025-08-19 10:20:23 +00:00
# Code generated by Lark OpenAPI.
from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
class Education(object):
_types = {
"level": int,
"school": str,
"major": str,
"degree": int,
"start": str,
"end": str,
}
def __init__(self, d=None):
self.level: Optional[int] = None
self.school: Optional[str] = None
self.major: Optional[str] = None
self.degree: Optional[int] = None
self.start: Optional[str] = None
self.end: Optional[str] = None
init(self, d, self._types)
@staticmethod
def builder() -> "EducationBuilder":
return EducationBuilder()
class EducationBuilder(object):
def __init__(self) -> None:
self._education = Education()
def level(self, level: int) -> "EducationBuilder":
self._education.level = level
return self
def school(self, school: str) -> "EducationBuilder":
self._education.school = school
return self
def major(self, major: str) -> "EducationBuilder":
self._education.major = major
return self
def degree(self, degree: int) -> "EducationBuilder":
self._education.degree = degree
return self
def start(self, start: str) -> "EducationBuilder":
self._education.start = start
return self
def end(self, end: str) -> "EducationBuilder":
self._education.end = end
return self
def build(self) -> "Education":
return self._education