# Code generated by lark_sdk_gen. DO NOT EDIT.

from pylark.lark_request import RawRequestReq, _new_method_option
from pylark import lark_type, lark_type_sheet, lark_type_approval
import attr
import typing
import io


@attr.s
class GetJssdkTicketReq(object):
    pass


@attr.s
class GetJssdkTicketResp(object):
    expire_in: int = attr.ib(
        default=0, metadata={"req_type": "json", "key": " expire_in"}
    )  # `jsapi_ticket 的有效时间`
    ticket: str = attr.ib(
        default="", metadata={"req_type": "json", "key": " ticket"}
    )  # `jsapi_ticket`


def _gen_get_jssdk_ticket_req(request, options) -> RawRequestReq:
    return RawRequestReq(
        dataclass=GetJssdkTicketResp,
        scope="Jssdk",
        api="GetJssdkTicket",
        method="POST",
        url="https://open.feishu.cn/open-apis/jssdk/ticket/get",
        body=request,
        method_option=_new_method_option(options),
        need_app_access_token=True,
        need_user_access_token=True,
    )

# Code generated by lark_sdk_gen. DO NOT EDIT.

from pylark.lark_request import RawRequestReq, _new_method_option
from pylark import lark_type, lark_type_sheet, lark_type_approval
import attr
import typing
import io


@attr.s
class GetJssdkTicketReq(object):
    pass


@attr.s
class GetJssdkTicketResp(object):
    expire_in: int = attr.ib(
        default=0, metadata={"req_type": "json", "key": " expire_in"}
    )  # `jsapi_ticket 的有效时间`
    ticket: str = attr.ib(
        default="", metadata={"req_type": "json", "key": " ticket"}
    )  # `jsapi_ticket`


def _gen_get_jssdk_ticket_req(request, options) -> RawRequestReq:
    return RawRequestReq(
        dataclass=GetJssdkTicketResp,
        scope="Jssdk",
        api="GetJssdkTicket",
        method="POST",
        url="https://open.feishu.cn/open-apis/jssdk/ticket/get",
        body=request,
        method_option=_new_method_option(options),
        need_app_access_token=True,
        need_user_access_token=True,
    )

# Code generated by lark_sdk_gen. DO NOT EDIT. # `jsapi_ticket 的有效时间` # `jsapi_ticket`