""" Options: Date: 2025-04-04 17:59:41 Version: 5.140 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.clubmanagercentral.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: FileAttachmentService.GetFileRequest.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FileAttachmentData: file_attachment_id: int = 0 branch_id: int = 0 uploaded_by_user_id: int = 0 file_data: Optional[bytes] = None instance_type: Optional[str] = None instance_id: int = 0 filename: Optional[str] = None file_size: int = 0 mime_type: Optional[str] = None thumbnail: Optional[bytes] = None # @Route("/api/FileAttachment/GetFile", "POST,GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetFileRequest(IReturn[FileAttachmentData]): file_attachment_id: int = 0