73 lines
2.1 KiB
Python
73 lines
2.1 KiB
Python
![]() |
# 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 TalentNote(object):
|
||
|
_types = {
|
||
|
"id": str,
|
||
|
"talent_id": str,
|
||
|
"application_id": str,
|
||
|
"create_time": str,
|
||
|
"update_time": str,
|
||
|
"creator_id": str,
|
||
|
"content": str,
|
||
|
"privacy": int,
|
||
|
}
|
||
|
|
||
|
def __init__(self, d=None):
|
||
|
self.id: Optional[str] = None
|
||
|
self.talent_id: Optional[str] = None
|
||
|
self.application_id: Optional[str] = None
|
||
|
self.create_time: Optional[str] = None
|
||
|
self.update_time: Optional[str] = None
|
||
|
self.creator_id: Optional[str] = None
|
||
|
self.content: Optional[str] = None
|
||
|
self.privacy: Optional[int] = None
|
||
|
init(self, d, self._types)
|
||
|
|
||
|
@staticmethod
|
||
|
def builder() -> "TalentNoteBuilder":
|
||
|
return TalentNoteBuilder()
|
||
|
|
||
|
|
||
|
class TalentNoteBuilder(object):
|
||
|
def __init__(self) -> None:
|
||
|
self._talent_note = TalentNote()
|
||
|
|
||
|
def id(self, id: str) -> "TalentNoteBuilder":
|
||
|
self._talent_note.id = id
|
||
|
return self
|
||
|
|
||
|
def talent_id(self, talent_id: str) -> "TalentNoteBuilder":
|
||
|
self._talent_note.talent_id = talent_id
|
||
|
return self
|
||
|
|
||
|
def application_id(self, application_id: str) -> "TalentNoteBuilder":
|
||
|
self._talent_note.application_id = application_id
|
||
|
return self
|
||
|
|
||
|
def create_time(self, create_time: str) -> "TalentNoteBuilder":
|
||
|
self._talent_note.create_time = create_time
|
||
|
return self
|
||
|
|
||
|
def update_time(self, update_time: str) -> "TalentNoteBuilder":
|
||
|
self._talent_note.update_time = update_time
|
||
|
return self
|
||
|
|
||
|
def creator_id(self, creator_id: str) -> "TalentNoteBuilder":
|
||
|
self._talent_note.creator_id = creator_id
|
||
|
return self
|
||
|
|
||
|
def content(self, content: str) -> "TalentNoteBuilder":
|
||
|
self._talent_note.content = content
|
||
|
return self
|
||
|
|
||
|
def privacy(self, privacy: int) -> "TalentNoteBuilder":
|
||
|
self._talent_note.privacy = privacy
|
||
|
return self
|
||
|
|
||
|
def build(self) -> "TalentNote":
|
||
|
return self._talent_note
|