pay-employee/src/gen/ApiTypes.d.ts
2026-06-29 13:34:45 +08:00

782 lines
27 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; // 手机号
};
type ChangeContact = {
"house_occupants_id": number; // 住户的id
"is_contact": boolean; // 是否常用联系人
};
}
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 SelectPermissionProject = {
"name"?: string; // 项目名称
"city"?: string; // 城市名称
"city_id"?: string; // 城市id
};
type SelectBuilding = {
"asset_projects_id": number; // 所属项目ID
"name"?: string; // 名称
};
type SelectPermissionBuilding = {
"asset_projects_id": number; // 所属项目ID
"name"?: string; // 名称
};
type SelectUnit = {
"asset_projects_id"?: number; // 所属项目ID
"asset_buildings_id": number; // 所属楼栋ID
"name"?: string; // 名称
};
type SelectPermissionUnit = {
"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 AssetProjectAdmins {
type List = {
"asset_projects_id"?: number; // 项目id,[ref:asset_projects]
"project_name"?: string; // 模糊搜索:名称
};
type Show = {
"id": number; // id
};
}
}
namespace Attendance {
namespace AttendanceEmployeeTracks {
type MyTracks = {
"start_date"?: Date; // 开始日期
"end_date"?: Date; // 结束日期
"asset_projects_id"?: number; // 项目ID
};
type Track = {
"asset_projects_id"?: number; // 项目ID可选
"longitude": number; // 经度
"latitude": number; // 纬度
"address"?: string; // 地址
};
}
namespace AttendanceRecords {
type Checkin = {
"attendance_schedules_id": number; // 排班记录ID
"attendance_shift_periods_id": number; // 班次时段ID
"checkin_type": in:CheckIn,CheckOut; // 打卡类型(上班/下班)
"longitude": number; // 经度
"latitude": number; // 纬度
"asset_projects_id"?: number; // 项目ID可选默认使用排班项目
"address"?: string; // 地址
"photo"?: string[]; // 照片
"device_info"?: string[]; // 设备信息
"remark"?: string; // 备注
};
type Makeup = {
"attendance_schedules_id": number; // 排班记录ID
"attendance_shift_periods_id": number; // 班次时段ID
"checkin_type": in:CheckIn,CheckOut; // 打卡类型
"checkin_time": Date; // 补卡时间
"longitude"?: number; // 经度
"latitude"?: number; // 纬度
"asset_projects_id"?: number; // 项目ID
"address"?: string; // 地址
"photo"?: string[]; // 照片
"device_info"?: string[]; // 设备信息
"remark"?: string; // 备注
};
type MyRecords = {
"start_date": Date; // 开始日期
"end_date": Date; // 结束日期
};
type RecordDetail = {
"id": number; // 打卡记录ID
};
}
namespace AttendanceSchedules {
type MySchedules = {
"start_date": Date; // 开始日期
"end_date": Date; // 结束日期
};
type GetAttendanceShiftPeriod = {
"attendance_schedules_id": number; // 班次id
"attendance_shift_periods_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[]; // 通知渠道 SMS,MiniProgram,OfficialAccount
"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 CompanyEmployees {
type Select = {
"keywords"?: string; // 关键词
};
}
namespace CompanyProjectReceiptAccounts {
type List = {
"projects_id": number; // 项目ID
};
type GetDefaultReceiptAccounts = {
"projects_id": number; // 项目ID
};
type Show = {
"id": number; // id
};
}
}
namespace Count {
namespace CommonCount {
}
}
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_id": 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 Emergency {
namespace EmergencyEventCategories {
type List = {
"name"?: string; // 模糊搜索:名称
"parent_id"?: number; // 父级ID
};
type TreeList = {
"name"?: string; // 模糊搜索:名称
"parent_id"?: number; // 父级ID
};
type Show = {
"id": number; // id
};
type Select = {
"keywords"?: string; // 关键词
};
type SelectTree = {
"keywords"?: string; // 关键词
"type"?: string; // 类型
"parent_id"?: number; // 父级ID
};
}
namespace EmergencyEventFollows {
type List = {
"emergency_events_id": number; // 突发事件ID,[ref:emergency_events]
"content"?: string; // 跟进内容
};
type Store = {
"emergency_events_id": number; // 突发事件ID,[ref:emergency_events]
"content": string; // 跟进内容
"attachments"?: string[]; // 附件
};
type Show = {
"id": number; // id
};
}
namespace EmergencyEventLevels {
type List = {
"name"?: string; // 模糊搜索:名称
};
type Show = {
"id": number; // id
};
type Select = {
"name"?: string; // 名称
};
}
namespace EmergencyEventTeams {
type List = {
"name"?: string; // 模糊搜索:名称
"leader_name"?: string; // 队长名称
};
type Show = {
"id": number; // id
};
type GetPermission = {
"asset_projects_id": number; // 项目ID,[ref:asset_projects]
};
type Select = {
"name"?: string; // 模糊搜索:名称
"leader_name"?: string; // 队长名称
};
}
namespace EmergencyEvents {
type List = {
"name"?: string; // 模糊搜索:事件名称
"asset_projects_id"?: number; // 事发项目ID
"asset_projects_name"?: string; // 事发项目名称
"emergency_event_employees_id"?: number; // 报事人ID
"reporter_name"?: string; // 报事人名称
"emergency_time"?: string[]; // 事发时间范围
"status"?: string; // 状态,[enum:EmergencyEventsStatusEnum]
"audit_status"?: string; // 审核状态,[enum:EmergencyEventsAuditStatusEnum]
};
type Store = {
"name": string; // 事件名称
"two_emergency_categories_id": number; // 二级分类ID,[ref:emergency_event_categories]
"emergency_event_levels_id": number; // 事件等级ID,[ref:emergency_event_levels]
"asset_projects_id": number; // 项目ID,[ref:asset_projects]
"emergency_time": Date; // 事件发生时间
"emergency_location": string; // 事件发生地点
"emergency_description": string; // 事件描述
"emergency_cause": string; // 事件原因
"cause_result": string; // 造成结果
"emergency_images"?: string[]; // 事件图片
"emergency_events_id"?: number; // 关联事件ID,[ref:emergency_events]
"related_person"?: string; // 关联人物
"supplement"?: string; // 补充信息
"compensation_type"?: string; // 赔偿类型,[enum:EmergencyEventsCompensationTypeEnum]
"compensation_rate"?: number; // 赔偿比例
"compensation_amount"?: number; // 赔偿金额
"compensation_paid_amount"?: number; // 已支付赔偿金额
};
type Update = {
"id": number; // id
"name": string; // 事件名称
"two_emergency_categories_id": number; // 二级分类ID,[ref:emergency_event_categories]
"emergency_event_levels_id": number; // 事件等级ID,[ref:emergency_event_levels]
"emergency_event_levels_name"?: string; // 事件等级名称
"asset_projects_id": number; // 项目ID,[ref:asset_projects]
"emergency_time": Date; // 事件发生时间
"emergency_location": string; // 事件发生地点
"emergency_description": string; // 事件描述
"emergency_cause": string; // 事件原因
"cause_result": string; // 造成结果
"emergency_images"?: string[]; // 事件图片
"emergency_events_id"?: number; // 关联事件ID,[ref:emergency_events]
"related_person"?: string; // 关联人物
"supplement"?: string; // 补充信息
"compensation_type"?: string; // 赔偿类型,[enum:EmergencyEventsCompensationTypeEnum]
"compensation_rate"?: number; // 赔偿比例
"compensation_amount"?: number; // 赔偿金额
"compensation_paid_amount"?: number; // 已支付赔偿金额
};
type Show = {
"id": number; // id
};
type ApplyClose = {
"id": number; // id
"handled_result"?: string; // 处理结果
"introspection"?: string; // 反思与总结
};
type Select = {
"keywords"?: string; // 关键词
"asset_projects_id"?: number; // 项目ID
};
}
}
namespace GoodsReleases {
namespace GoodsReleases {
type ScanRelease = {
"code": string; // 放行码
};
type Show = {
"id": number; // 放行码id
};
}
}
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
};
type AlipayQrCode = {
"id": number; // id 订单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 Meter {
namespace HouseMeterReadings {
type List = {
"meter_type": string; // 仪表类型,[enum:HouseMetersMeterTypeEnum] HouseMeter=住户仪表,CommonMeter=公共仪表
"usage_type"?: string; // 使用类型,[enum:HouseMetersUsageTypeEnum]
"asset_projects_id"?: number; // 项目id,[ref:asset_projects]
"asset_buildings_id"?: number; // 楼栋id,[ref:asset_buildings]
"keyword"?: string; // 搜索关键词(房屋名称/仪表名称)
};
type GetMeterDetail = {
"house_meters_id": number; // 仪表id,[ref:house_meters]
};
type Store = {
"house_meters_id": number; // 仪表id,[ref:house_meters]
"current_reading": number; // 本次读数
"reading_time": Date; // 抄表时间
"image"?: string[]; // 仪表图片
"remark"?: string; // 备注
};
type Show = {
"id": number; // 抄表记录id
};
}
namespace HouseMeters {
type List = {
"meter_type": string; // 仪表类型,[enum:HouseMetersMeterTypeEnum] HouseMeter=住户仪表,CommonMeter=公共仪表
"usage_type"?: string; // 使用类型,[enum:HouseMetersUsageTypeEnum] WaterMeter=水表,ElectricMeter=电表
"asset_projects_id"?: number; // 项目id,[ref:asset_projects]
"asset_buildings_id"?: number; // 楼栋id,[ref:asset_buildings]
"asset_units_id"?: number; // 单元id,[ref:asset_units]
"keyword"?: string; // 搜索关键词(房屋名称/仪表名称)
"reading_status"?: string; // 抄表状态: read=已抄表, unread=未抄表
"overdue_days"?: string; // 未抄表天数筛选: 30=超过30天(31-60天), 60=超过60天(61-90天), 90=超过90天(91天及以上)
};
type Show = {
"id": number; // 仪表id
};
}
}
namespace Msg {
namespace MsgPropertyAnnouncements {
type List = {
"title"?: string; // 模糊搜索:标题
"publish_at"?: Date; // 发布时间
};
type Show = {
"id": number; // id
};
type MarkAsRead = {
"id": number; // 公告ID
};
}
}
namespace Patrol {
namespace PatrolTaskLocations {
type GetPatrolTaskList = {
"id": number; // 巡逻位置ID
};
type Store = {
"patrol_tasks_id": number; // 巡逻任务ID
"patrol_locations_id": number; // 巡逻位置ID
"longitude"?: number; // 经度
"latitude"?: number; // 纬度
"images"?: string[]; // 巡逻图片
"remark"?: string; // 巡逻备注
};
type GetPatrolTaskLocation = {
"patrol_tasks_id": number; // 巡逻任务ID
"patrol_locations_id": number; // 巡逻位置ID
};
type Show = {
"id": number; // id
};
}
}
namespace Survey {
namespace Surveys {
type Questions = {
"surveyId": number; // -
"release_id"?: number; // -
};
type SubmitResponse = {
"surveyId": number; // -
"release_id"?: number; // -
"answers": string[]; // -
};
}
}
namespace Visitor {
namespace VisitorApplies {
type Scan = {
"code"?: string; // 通行码(访客二维码)
"customers_id"?: number; // 客户ID住户二维码
"asset_houses_id"?: number; // 房屋ID住户二维码
"scan_type": string; // 扫码类型:[enum:VisitorScanTypeEnum]
};
type Show = {
"id": number; // 申请id
};
}
}
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[]; // 附件
"is_fee"?: boolean; // 是否产生费用
"amount"?: number; // 金额(单位元)
"company_project_receipt_accounts_id"?: number; // 收款账户id,[ref:company_project_receipt_accounts]
"is_passed"?: boolean; // 装修验收结果: 0-不合格1-合格
};
type Show = {
"id": number; // id
};
}
namespace HouseWorkOrders {
type List = {
"type"?: string; // 工单类型,[enum:HouseWorkOrdersTypeEnum]
"status"?: string; // 工单状态,[enum:HouseWorkOrdersStatusEnum]
};
type MySubmitList = {
"type"?: string; // 工单类型,[enum:HouseWorkOrdersTypeEnum]
"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; // 期望上门最后时间
"asset_houses_id"?: number; // 资产房屋id,[ref:asset_houses]
"is_self"?: boolean; // 是否自己处理(员工创建启用)
"floor"?: string; // 楼层
"asset_projects_id"?: number; // 资产项目id,[ref:asset_projects]
};
type Show = {
"id": number; // id
};
type GetWorkOrderPayQrCode = {
"id": number; // id
};
type GetWorkOrderAlipayQrCode = {
"id": number; // 工单ID
};
type Accept = {
"id": number; // 工单id
"is_completed": boolean; // 是否完工:0否,1是
"accept_remark"?: string; // 验收备注
};
type Close = {
"id": number; // 工单id
};
type UnassignedList = {
"type"?: string; // 工单类型,[enum:HouseWorkOrdersTypeEnum]
"status"?: string; // 工单状态,[enum:HouseWorkOrdersStatusEnum]
"project_name"?: string; // 项目名称
};
type Receive = {
"id": number; // id
"assign_remark"?: string; // 分派说明
"predict_complete_at"?: Date; // 预计完成时间
"level"?: string; // 优先级,[enum:HouseWorkOrdersLevelEnum]
};
type Assign = {
"id": number; // id
"assign_employees_id": number; // 处理人id,[ref:company_employees]
"assign_remark"?: string; // 分派说明
"predict_complete_at"?: Date; // 预计完成时间
"level"?: string; // 优先级,[enum:HouseWorkOrdersLevelEnum]
};
type GetAssignPermission = {
"id": number; // 工单id
};
}
}
}