51 lines
1.3 KiB
Python
51 lines
1.3 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
|
||
|
from .i18n import I18n
|
||
|
from .i18n import I18n
|
||
|
|
||
|
|
||
|
class TalentPool(object):
|
||
|
_types = {
|
||
|
"id": str,
|
||
|
"name": I18n,
|
||
|
"description": I18n,
|
||
|
"add_time": str,
|
||
|
}
|
||
|
|
||
|
def __init__(self, d=None):
|
||
|
self.id: Optional[str] = None
|
||
|
self.name: Optional[I18n] = None
|
||
|
self.description: Optional[I18n] = None
|
||
|
self.add_time: Optional[str] = None
|
||
|
init(self, d, self._types)
|
||
|
|
||
|
@staticmethod
|
||
|
def builder() -> "TalentPoolBuilder":
|
||
|
return TalentPoolBuilder()
|
||
|
|
||
|
|
||
|
class TalentPoolBuilder(object):
|
||
|
def __init__(self) -> None:
|
||
|
self._talent_pool = TalentPool()
|
||
|
|
||
|
def id(self, id: str) -> "TalentPoolBuilder":
|
||
|
self._talent_pool.id = id
|
||
|
return self
|
||
|
|
||
|
def name(self, name: I18n) -> "TalentPoolBuilder":
|
||
|
self._talent_pool.name = name
|
||
|
return self
|
||
|
|
||
|
def description(self, description: I18n) -> "TalentPoolBuilder":
|
||
|
self._talent_pool.description = description
|
||
|
return self
|
||
|
|
||
|
def add_time(self, add_time: str) -> "TalentPoolBuilder":
|
||
|
self._talent_pool.add_time = add_time
|
||
|
return self
|
||
|
|
||
|
def build(self) -> "TalentPool":
|
||
|
return self._talent_pool
|