declare namespace ApiTypes { namespace Archive { namespace HouseOccupants { type List = { "asset_houses_id": number; // 房屋ID[ref:asset_houses] }; type GetCustomerHouse = { "asset_houses_id"?: number; // 房屋ID[ref:asset_houses] "phone": string; // 手机号 }; type GetHouseOccupants = { "keyword"?: string; // - }; type Show = { "id": number; // 住户记录ID }; type GetHouseOccupantsByPhone = { "phone": string; // 手机号 }; } namespace HouseRegisters { type Store = { "phone": string; // 手机号 "name"?: string; // 姓名 "external_userid": string; // 外部联系人ID "house_info": string[]; // 房屋信息 }; type RegisterHouse = { "asset_houses_id": number; // 房屋ID "type": string; // 类型, [enum:HouseRegistersTypeEnum] "house_status"?: string; // 房屋状态,[enum:HouseRegistersHouseStatusEnum] "usage_plan"?: string; // 使用计划,[enum:HouseRegistersUsagePlanEnum] "customer_info": string[]; // 客户信息 "ownership_info"?: string[]; // 产权信息 }; type Unbind = { "external_userid": string; // 外部联系人ID "asset_houses_id": number; // 房屋ID }; type RemoveOwner = { "house_occupants_id": number; // 房客id }; type ChangeOccupant = { "update_info": string[]; // 要修改的信息 "update_info.name"?: string; // 客户姓名 "update_info.phone"?: string; // 客户手机号 "update_info.reserve_phone"?: phone; // 客户备用电话 "update_info.card_type"?: string; // 证件类型,[enum:HouseOccupantsCardTypeEnum] "update_info.id_card"?: string; // 客户身份证号 "update_info.card_front_image"?: string[]; // 身份证正面图片 "update_info.card_back_image"?: string[]; // 身份证反面图片 "update_info.address"?: string; // 客户地址 "update_info.ownership_info"?: string[]; // 产权信息 "house_relation"?: string; // 房客关系,[enum:HouseOccupantsHouseRelationEnum] "residential_relation"?: string; // 居住关系,[enum:HouseOccupantsResidentialRelationEnum] "owners_id"?: number; // 产权人id,[ref:house_occupants] "relation_with_owner"?: string; // 与产权人关系,[enum:HouseOccupantsRelationWithOwnerEnum] }; } } namespace Asset { namespace AssetHouses { type SelectProject = { "name"?: string; // 项目名称 "city"?: string; // 城市名称 "city_id"?: string; // 城市id }; type SelectBuilding = { "asset_projects_id": number; // 所属项目ID "name"?: string; // 名称 }; type SelectUnit = { "asset_projects_id"?: number; // 所属项目ID "asset_buildings_id": number; // 所属楼栋ID "name"?: string; // 名称 }; type SelectHouse = { "asset_projects_id"?: number; // 所属项目ID "asset_buildings_id"?: number; // 所属楼栋ID "asset_units_id"?: number; // 所属单元ID "name"?: string; // 名称 }; type Show = { "asset_houses_id": number; // 房屋ID }; } } namespace Banner { namespace BannerSpaces { type List = { "id": number; // ID }; } } namespace Bill { namespace HouseBills { type HouseList = { "full_name"?: string; // - "overdue_months_range"?: string[]; // 欠费月份区间,例如 [1, 3] "uncollected_days"?: number; // 欠费天数:1,3,7,15 }; type HouseArrearageAmount = { "asset_houses_id": number; // 资产房屋id,[ref:asset_houses] }; type List = { "asset_houses_id": number; // 资产房屋id,[ref:asset_houses] "type": number; // 账单查询类型:1 欠费账单, 2 已收账单 }; type MonthBillDetail = { "asset_houses_id": number; // 资产房屋id,[ref:asset_houses] "month": string; // 月份 2025-08 "type": number; // 账单查询类型:1 欠费账单, 2 已收账单 }; type BillQRCode = { "bill_ids": string[]; // 账单id }; type GetOccupantArrearageHouses = { "phone": string; // 手机号 }; type Show = { "id": number; // id }; } } namespace Collection { namespace HouseCollectionRecords { type List = { "asset_houses_id": number; // 资产房屋ID }; type Store = { "asset_houses_id": number; // 房屋信息id,[ref:asset_houses] "total_unpaid_amount"?: number; // 总未缴金额 "channel": string; // 通知渠道,[enum:HouseCollectionTasksChannelEnum] "notified_time"?: Date; // 通知时间 "collection_result"?: string; // 催收结果 "collection_content"?: string; // 催收内容 }; type Update = { "id": number; // id "channel": string; // 通知渠道,[enum:HouseCollectionTasksChannelEnum] "notified_time"?: Date; // 通知时间 }; type Show = { "id": number; // id }; type GetTaskRecords = { "collection_tasks_id": number; // 任务ID }; } namespace HouseCollectionTasks { type List = { "task_name"?: string; // 模糊搜索:名称 "status"?: string; // 状态,[enum:HouseCollectionTasksStatusEnum] }; type Store = { "channel": string[]; // 通知渠道 "houses": string[]; // 通知房屋信息 }; type Show = { "id": number; // id }; } } namespace Company { namespace CompanyEmployeeBacklogs { type List = { "type"?: string; // 类型,[enum:CompanyEmployeeBacklogsTypeEnum] "status"?: string; // 状态,[enum:CompanyEmployeeBacklogsStatusEnum] }; type Show = { "id": number; // id }; } namespace CompanyEmployeeCustomers { type List = { "name"?: string; // 模糊搜索:名称 }; type Show = { "id": number; // id }; type Delete = { "id": number; // id }; } } namespace Customer { namespace CustomerHouses { type List = { "external_userid": string; // 客户外部联系人id }; type Show = { "id": number; // id }; type HouseDetail = { "external_userid": string; // 客户外部联系人id "asset_houses_id": number; // 房屋id,[ref:asset_houses] }; } namespace CustomerMomentTasks { type List = { "content"?: string; // 模糊搜索:名称 }; type Store = { "customer_moments_id": number; // 朋友圈id,[ref:customer_moments] "company_employee_backlogs": number; // 公司员工待办事项id,[ref:company_employee_backlogs] }; type Show = { "id": number; // id }; } namespace CustomerMoments { type Show = { "id": number; // 内容id }; type UploadMedia = { "path": string; // 文件路径 "type": string; // 文件类型 }; type UploadImage = { "path": string; // 文件路径 "type": string; // 文件类型 }; } namespace CustomerOpinions { type Store = { "type": string; // 类型,[enum:CustomerOpinionsTypeEnum] "content": string; // 建议内容 "images"?: string[]; // 图片 }; } } namespace Grid { namespace GridRanges { type List = { "grids_id"?: number; // 模糊搜索:名称 }; type Show = { "id": number; // id }; } namespace Grids { type List = { "name"?: string; // 模糊搜索:名称 }; type Show = { "id": number; // id }; type GridAssetProject = { "name"?: string; // 项目名称 "city"?: string; // 城市名称 "city_id"?: string; // 城市id }; type GridAssetBuilding = { "asset_projects_id"?: number; // 所属项目ID "name"?: string; // 名称 }; type GridAssetUnit = { "asset_projects_id"?: number; // 所属项目ID "asset_buildings_id"?: number; // 所属楼栋ID "name"?: string; // 名称 }; type GridAssetHouse = { "asset_projects_id"?: number; // 所属项目ID "asset_buildings_id"?: number; // 所属楼栋ID "asset_units_id"?: number; // 所属单元ID "name"?: string; // 名称 "full_name"?: string; // 全名 }; type GridSelectHouse = { "asset_projects_id"?: number; // 所属项目ID "asset_buildings_id"?: number; // 所属楼栋ID "asset_units_id"?: number; // 所属单元ID "name"?: string; // 名称 "full_name"?: string; // 全名 }; } } namespace HouseOrder { namespace HouseOrders { type Store = { "amount": number; // 金额 "discount_amount"?: number; // 优惠金额 "late_fee"?: number; // 滞纳金 "total_payable_amount": number; // 应付金额 "bill_ids": string[]; // 账单id }; type Show = { "id": number; // id }; type GetPayQrCode = { "id": number; // id }; } } namespace Login { namespace Auth { type Login = { "code": string; // 微信code "app_id": string; // 小程序app_id }; type ChangeAvatar = { "avatar": string[]; // 头像 }; type BindPhoneNumber = { "code"?: string; // 微信code "phone"?: string; // 手机号 "phone_validate_code"?: string; // 手机验证码 "app_id": string; // 小程序app_id }; type SendValidateSms = { "phone": string; // 手机号 }; type GetAccessToken = { "user_name": string; // 用户名 "password": string; // 密码 "app_id": string; // appId }; type WorkLogin = { "code": string; // 企业微信code "phone"?: string; // 手机号 "name"?: string; // 真实姓名 "app_id": string; // 企业微信CorpID }; type BindWork = { "session_key": string; // - "iv": string; // - "encrypted_data": string; // - "app_id": string; // 小程序app_id }; type GetWorkAccessToken = { "user_name": string; // 用户名 "password": string; // 密码 "app_id": string; // 企业微信CorpID "work_type": string; // 企业微信类型 }; type PreUpload = { "filename": string; // 文件名称 "alc"?: string; // 访问限制 public-read, private }; type TemporaryUrl = { "filename": string; // 文件名称 }; } } namespace WorkOrder { namespace HouseWorkLogs { type List = { "house_work_orders_id": number; // 工单id,[ref:house_work_orders] }; type Store = { "house_work_orders_id": number; // 工单id,[ref:house_work_orders] "status": string; // 工单状态,[enum:HouseWorkOrdersStatusEnum] "description"?: string; // 进度描述 "attachments"?: string[]; // 附件 }; type Show = { "id": number; // id }; } namespace HouseWorkOrders { type List = { "status"?: string; // 工单状态,[enum:HouseWorkOrdersStatusEnum] }; type GetHouseWorkOrders = { "asset_houses_id": number; // 资产房屋id,[ref:asset_houses] "status"?: string; // 工单状态,[enum:HouseWorkOrdersStatusEnum] }; type Store = { "type": string; // 工单类型,[enum:HouseWorkOrdersTypeEnum] "complaint_type"?: string; // 投诉类型[enum:HouseWorkOrdersComplaintTypeEnum] "location"?: string; // 报修位置[enum:HouseWorkOrdersLocationEnum] "content": string; // 工单内容 "reporter_name"?: string; // 上报人名称 "reporter_phone"?: string; // 上报人手机 "contact_phone"?: string; // 联系人电话 "attachments"?: string[]; // 工单附件 "expect_start_time"?: Date; // 期望上门开始时间 "expect_end_time"?: Date; // 期望上门最后时间 "is_anonymous"?: boolean; // 是否匿名 "asset_houses_id": number; // 资产房屋id,[ref:asset_houses] }; type Show = { "id": number; // id }; } } }