sdk/oapiSdk/lark_oapi/api/vc/v1/model/subscribe_user.py

37 lines
978 B
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 SubscribeUser(object):
_types = {
"user_id": int,
"user_name": str,
}
def __init__(self, d=None):
self.user_id: Optional[int] = None
self.user_name: Optional[str] = None
init(self, d, self._types)
@staticmethod
def builder() -> "SubscribeUserBuilder":
return SubscribeUserBuilder()
class SubscribeUserBuilder(object):
def __init__(self) -> None:
self._subscribe_user = SubscribeUser()
def user_id(self, user_id: int) -> "SubscribeUserBuilder":
self._subscribe_user.user_id = user_id
return self
def user_name(self, user_name: str) -> "SubscribeUserBuilder":
self._subscribe_user.user_name = user_name
return self
def build(self) -> "SubscribeUser":
return self._subscribe_user