422 lines
15 KiB
TypeScript
422 lines
15 KiB
TypeScript
declare namespace ApiTypes {
|
||
namespace Asset {
|
||
namespace AssetBuildings {
|
||
type List = {
|
||
"asset_projects_id"?: number; // 所属项目id,[ref:asset_projects]
|
||
"name"?: string; // 模糊搜索:名称
|
||
};
|
||
type Store = {
|
||
"asset_projects_id": number; // 所属项目id,[ref:asset_projects]
|
||
"name": string; // 楼栋名称
|
||
"alias_name"?: string; // 楼栋别名
|
||
};
|
||
type Update = {
|
||
"id": number; // id
|
||
"asset_projects_id": number; // 所属项目id,[ref:asset_projects]
|
||
"name": string; // 楼栋名称
|
||
"alias_name"?: string; // 楼栋别名
|
||
};
|
||
type Show = {
|
||
"id": number; // id
|
||
};
|
||
type Delete = {
|
||
"id": number; // id
|
||
};
|
||
type Select = {
|
||
"asset_projects_id"?: number; // 所属项目id,[ref:asset_projects]
|
||
"keywords"?: string; // 关键词
|
||
};
|
||
}
|
||
namespace AssetHouses {
|
||
type List = {
|
||
"asset_projects_id"?: number; // 所属项目id,[ref:asset_projects]
|
||
"asset_buildings_id"?: number; // 所属楼栋id,[ref:asset_buildings]
|
||
"asset_units_id"?: number; // 所属单元id,[ref:asset_units]
|
||
"name"?: string; // 模糊搜索:名称
|
||
};
|
||
type Store = {
|
||
"asset_projects_id": number; // 所属项目id,[ref:asset_projects]
|
||
"asset_buildings_id": number; // 所属楼栋id,[ref:asset_buildings]
|
||
"asset_units_id": number; // 所属单元id,[ref:asset_units]
|
||
"name": string; // 房屋名称
|
||
"full_name": string; // 房屋全称
|
||
"floor"?: number; // 楼层
|
||
"built_area"?: number; // 建筑面积
|
||
"inside_area"?: number; // 套内面积
|
||
"chargeable_area"?: number; // 计费面积
|
||
"ownership_type"?: string; // 产权性质,[enum:AssetHousesOwnershipTypeEnum]
|
||
"ownership_term"?: string; // 产权年限
|
||
"orientation"?: string; // 朝向,[enum:AssetHousesOrientationEnum]
|
||
"usage"?: string; // 用途,[enum:AssetHousesUsageEnum]
|
||
"status"?: string; // 房屋状态,[enum:AssetHousesStatusEnum]
|
||
"room"?: number; // 房
|
||
"hall"?: number; // 厅
|
||
"kitchen"?: number; // 厨
|
||
"bathroom"?: number; // 卫
|
||
"balcony"?: number; // 阳台
|
||
};
|
||
type Update = {
|
||
"id": number; // id
|
||
"asset_projects_id": number; // 所属项目id,[ref:asset_projects]
|
||
"asset_buildings_id": number; // 所属楼栋id,[ref:asset_buildings]
|
||
"asset_units_id": number; // 所属单元id,[ref:asset_units]
|
||
"name": string; // 房屋名称
|
||
"floor"?: number; // 楼层
|
||
"built_area"?: number; // 建筑面积
|
||
"inside_area"?: number; // 套内面积
|
||
"chargeable_area"?: number; // 计费面积
|
||
"ownership_type"?: string; // 产权性质,[enum:AssetHousesOwnershipTypeEnum]
|
||
"ownership_term"?: string; // 产权年限
|
||
"orientation"?: string; // 朝向,[enum:AssetHousesOrientationEnum]
|
||
"usage"?: string; // 用途,[enum:AssetHousesUsageEnum]
|
||
"status"?: string; // 房屋状态,[enum:AssetHousesStatusEnum]
|
||
"room"?: number; // 房
|
||
"hall"?: number; // 厅
|
||
"kitchen"?: number; // 厨
|
||
"bathroom"?: number; // 卫
|
||
"balcony"?: number; // 阳台
|
||
};
|
||
type Show = {
|
||
"id": number; // id
|
||
};
|
||
type Delete = {
|
||
"id": number; // id
|
||
};
|
||
}
|
||
namespace AssetProjects {
|
||
type List = {
|
||
"companies_id"?: number; // 所属机构id,[ref:companies]
|
||
"name"?: string; // 模糊搜索:名称
|
||
};
|
||
type Store = {
|
||
"name": string; // 项目名称
|
||
"alias_name"?: string; // 项目别名
|
||
"code"?: string; // 项目编码
|
||
"companies_id"?: number; // 所属机构id,[ref:companies]
|
||
"province"?: string; // 省
|
||
"city"?: string; // 市
|
||
"area"?: string; // 区
|
||
"street"?: string; // 街道
|
||
"province_id"?: number; // 省ID[ref:cities]
|
||
"city_id"?: number; // 市ID[ref:cities]
|
||
"area_id"?: number; // 区ID[ref:cities]
|
||
"street_id"?: number; // 街道ID[ref:cities]
|
||
"address"?: string; // 地址
|
||
"longitude"?: string; // 经度
|
||
"latitude"?: string; // 纬度
|
||
"property_type"?: string; // 物业类型,[enum:AssetProjectsPropertyTypeEnum]
|
||
"status"?: string; // 状态,[enum:AssetProjectsStatusEnum]
|
||
"entrust_type"?: string; // 委托类型,[enum:AssetProjectsEntrustTypeEnum]
|
||
"charge"?: string; // 收费方式,[enum:AssetProjectsChargeEnum]
|
||
"takeover_date"?: Date; // 接管日期
|
||
"closure_date"?: Date; // 封园日期
|
||
};
|
||
type Update = {
|
||
"id": number; // id
|
||
"name": string; // 项目名称
|
||
"alias_name"?: string; // 项目别名
|
||
"code"?: string; // 项目编码
|
||
"companies_id"?: number; // 所属机构id,[ref:companies]
|
||
"province"?: string; // 省
|
||
"city"?: string; // 市
|
||
"area"?: string; // 区
|
||
"street"?: string; // 街道
|
||
"province_id"?: number; // 省ID[ref:cities]
|
||
"city_id"?: number; // 市ID[ref:cities]
|
||
"area_id"?: number; // 区ID[ref:cities]
|
||
"street_id"?: number; // 街道ID[ref:cities]
|
||
"address"?: string; // 地址
|
||
"longitude"?: string; // 经度
|
||
"latitude"?: string; // 纬度
|
||
"property_type"?: string; // 物业类型,[enum:AssetProjectsPropertyTypeEnum]
|
||
"status"?: string; // 状态,[enum:AssetProjectsStatusEnum]
|
||
"entrust_type"?: string; // 委托类型,[enum:AssetProjectsEntrustTypeEnum]
|
||
"charge"?: string; // 收费方式,[enum:AssetProjectsChargeEnum]
|
||
"takeover_date"?: Date; // 接管日期
|
||
"closure_date"?: Date; // 封园日期
|
||
};
|
||
type Show = {
|
||
"id": number; // id
|
||
};
|
||
type SoftDelete = {
|
||
"id": number; // id
|
||
};
|
||
type Restore = {
|
||
"id": number; // id
|
||
};
|
||
type Delete = {
|
||
"id": number; // id
|
||
};
|
||
type Select = {
|
||
"keywords"?: string; // 关键词
|
||
};
|
||
}
|
||
namespace AssetUnits {
|
||
type List = {
|
||
"asset_projects_id"?: number; // 所属项目id,[ref:asset_projects]
|
||
"asset_buildings_id"?: number; // 所属楼栋id,[ref:asset_buildings]
|
||
"name"?: string; // 模糊搜索:名称
|
||
};
|
||
type Store = {
|
||
"asset_projects_id": number; // 所属项目id,[ref:asset_projects]
|
||
"asset_buildings_id": number; // 所属楼栋id,[ref:asset_buildings]
|
||
"name": string; // 单元名称
|
||
"alias_name"?: string; // 单元别名
|
||
"building_structure"?: string; // 建筑结构,[enum:AssetUnitsBuildingStructureEnum]
|
||
"building_type"?: string; // 建筑类型,[enum:AssetUnitsBuildingTypeEnum]
|
||
"elevator_count"?: number; // 电梯数量
|
||
"units_per_building"?: number; // 单元户数
|
||
"highest_floor"?: number; // 最高楼层
|
||
};
|
||
type Update = {
|
||
"id": number; // id
|
||
"asset_projects_id": number; // 所属项目id,[ref:asset_projects]
|
||
"asset_buildings_id": number; // 所属楼栋id,[ref:asset_buildings]
|
||
"name": string; // 单元名称
|
||
"alias_name"?: string; // 单元别名
|
||
"building_structure"?: string; // 建筑结构,[enum:AssetUnitsBuildingStructureEnum]
|
||
"building_type"?: string; // 建筑类型,[enum:AssetUnitsBuildingTypeEnum]
|
||
"elevator_count"?: number; // 电梯数量
|
||
"units_per_building"?: number; // 单元户数
|
||
"highest_floor"?: number; // 最高楼层
|
||
};
|
||
type Show = {
|
||
"id": number; // id
|
||
};
|
||
type Delete = {
|
||
"id": number; // id
|
||
};
|
||
type Select = {
|
||
"asset_projects_id"?: number; // 所属项目id,[ref:asset_projects]
|
||
"asset_buildings_id"?: number; // 所属楼栋id,[ref:asset_buildings]
|
||
"keywords"?: string; // 关键词
|
||
};
|
||
}
|
||
}
|
||
namespace Common {
|
||
namespace Admins {
|
||
type List = {
|
||
"username"?: string; // 模糊搜索:名称
|
||
};
|
||
type Store = {
|
||
"username": string; // 用户名
|
||
"password": string; // 密码
|
||
"roles_id"?: string[]; // 角色
|
||
};
|
||
type Update = {
|
||
"id": number; // id
|
||
"username": string; // 用户名/手机号
|
||
"password"?: string; // 密码,[hidden]
|
||
"roles_id"?: string[]; // 角色
|
||
};
|
||
type Delete = {
|
||
"id": number; // id
|
||
};
|
||
type Select = {
|
||
"username"?: string; // 模糊搜索:名称
|
||
};
|
||
}
|
||
namespace Auth {
|
||
type Login = {
|
||
"username": string; // 用户名
|
||
"password": string; // 密码
|
||
};
|
||
type ChangePassword = {
|
||
"old_password": string; // 老密码
|
||
"new_password": string; // 新密码
|
||
"re_new_password": string; // 重复新密码
|
||
};
|
||
type PreUpload = {
|
||
"filename": string; // 文件名称
|
||
"alc": string; // 访问限制 public-read, private
|
||
};
|
||
type TemporaryUrl = {
|
||
"filename": string; // 文件名称
|
||
};
|
||
}
|
||
}
|
||
namespace Company {
|
||
namespace Companies {
|
||
type List = {
|
||
"name"?: string; // 模糊搜索:名称
|
||
"parent_id"?: number; // 父级ID
|
||
};
|
||
type Store = {
|
||
"name": string; // 组织名称
|
||
"short_name"?: string; // 组织简称
|
||
"business_license_number": string; // 营业执照号
|
||
"merchant_type"?: string; // 商户类型,[enum:CompaniesMerchantTypeEnum]
|
||
"contact_name": string; // 联系人姓名
|
||
"contact_phone": string; // 联系人手机
|
||
"contact_email"?: string; // 联系人邮箱
|
||
"contact_address"?: string; // 联系人地址
|
||
"province"?: string; // 省
|
||
"city"?: string; // 市
|
||
"area"?: string; // 区
|
||
"street"?: string; // 街道
|
||
"province_id"?: number; // 省ID[ref:cities]
|
||
"city_id"?: number; // 市ID[ref:cities]
|
||
"area_id"?: number; // 区ID[ref:cities]
|
||
"street_id"?: number; // 街道ID[ref:cities]
|
||
"address"?: string; // 地址
|
||
"business_license_image"?: string[]; // 营业执照图片
|
||
"_lft"?: number; //
|
||
"_rgt"?: number; //
|
||
"parent_id"?: number; // 上级 ID
|
||
};
|
||
type Update = {
|
||
"id": number; // id
|
||
"name": string; // 组织名称
|
||
"short_name"?: string; // 组织简称
|
||
"business_license_number": string; // 营业执照号
|
||
"merchant_type"?: string; // 商户类型,[enum:CompaniesMerchantTypeEnum]
|
||
"contact_name": string; // 联系人姓名
|
||
"contact_phone": string; // 联系人手机
|
||
"contact_email"?: string; // 联系人邮箱
|
||
"contact_address"?: string; // 联系人地址
|
||
"province"?: string; // 省
|
||
"city"?: string; // 市
|
||
"area"?: string; // 区
|
||
"street"?: string; // 街道
|
||
"province_id"?: number; // 省ID[ref:cities]
|
||
"city_id"?: number; // 市ID[ref:cities]
|
||
"area_id"?: number; // 区ID[ref:cities]
|
||
"street_id"?: number; // 街道ID[ref:cities]
|
||
"address"?: string; // 地址
|
||
"business_license_image"?: string[]; // 营业执照图片
|
||
"_lft"?: number; //
|
||
"_rgt"?: number; //
|
||
"parent_id"?: number; // 上级 ID
|
||
};
|
||
type Show = {
|
||
"id": number; // id
|
||
};
|
||
type SoftDelete = {
|
||
"id": number; // id
|
||
};
|
||
type Restore = {
|
||
"id": number; // id
|
||
};
|
||
type Delete = {
|
||
"id": number; // id
|
||
};
|
||
type Select = {
|
||
"keywords"?: string; // 关键词
|
||
};
|
||
}
|
||
namespace Organizations {
|
||
type List = {
|
||
"name"?: string; // 模糊搜索:名称
|
||
"companies_id"?: number; // 机构ID[ref:companies]
|
||
};
|
||
type Store = {
|
||
"companies_id": number; // 所属机构id,[ref:companies]
|
||
"type": string; // 类型,[enum:OrganizationsTypeEnum]
|
||
"name": string; // 名称
|
||
"managers_id": number; // 负责人IDid,[ref:company_employees]
|
||
"manager_phone"?: string; // 负责人电话
|
||
"manager_email"?: string; // 负责人邮箱
|
||
"status"?: number; // 状态
|
||
"sort"?: number; // 排序
|
||
"_lft"?: number; //
|
||
"_rgt"?: number; //
|
||
"parent_id"?: number; //
|
||
};
|
||
type Update = {
|
||
"id": number; // id
|
||
"companies_id": number; // 所属机构id,[ref:companies]
|
||
"type": string; // 类型,[enum:OrganizationsTypeEnum]
|
||
"name": string; // 名称
|
||
"managers_id": number; // 负责人IDid,[ref:company_employees]
|
||
"manager_phone"?: string; // 负责人电话
|
||
"manager_email"?: string; // 负责人邮箱
|
||
"status"?: number; // 状态
|
||
"sort"?: number; // 排序
|
||
"_lft"?: number; //
|
||
"_rgt"?: number; //
|
||
"parent_id"?: number; // 上级 ID
|
||
};
|
||
type Move = {
|
||
"id": number; // ID
|
||
"type": string; // 类型:up 升级,down 降级
|
||
};
|
||
type Show = {
|
||
"id": number; // id
|
||
};
|
||
type SoftDelete = {
|
||
"id": number; // id
|
||
};
|
||
type Restore = {
|
||
"id": number; // id
|
||
};
|
||
type Delete = {
|
||
"id": number; // id
|
||
};
|
||
}
|
||
}
|
||
namespace Permission {
|
||
namespace SysPermissions {
|
||
type List = {
|
||
"parent_id"?: number; // 上级ID
|
||
"guard_name": string; //
|
||
};
|
||
type Tree = {
|
||
"parent_id"?: number; // 上级ID
|
||
"guard_name": string; //
|
||
};
|
||
type Store = {
|
||
"name": string; //
|
||
"key"?: string; //
|
||
"guard_name": string; //
|
||
"icon"?: string; // 图标
|
||
"type": string; // 类型:SysPermissionsTypeEnum
|
||
"backend_apis"?: string[]; // 后台api
|
||
"path"?: string; // 路由
|
||
"parent_id"?: number; //
|
||
};
|
||
type Update = {
|
||
"id": number; // ID
|
||
"name": string; //
|
||
"key"?: string; //
|
||
"guard_name": string; //
|
||
"icon"?: string; // 图标
|
||
"type": string; // 类型:SysPermissionsTypeEnum
|
||
"backend_apis"?: string[]; // 后台api
|
||
"path"?: string; // 路由
|
||
"parent_id"?: number; //
|
||
};
|
||
type Delete = {
|
||
"id": number; // ID
|
||
};
|
||
type Move = {
|
||
"id": number; // ID
|
||
"type": string; // 类型:up 升级,down 降级
|
||
};
|
||
}
|
||
namespace SysRoles {
|
||
type List = {
|
||
"name"?: string; // 模糊搜索:名称
|
||
};
|
||
type Store = {
|
||
"name": string; // 名称
|
||
"color"?: string; // 颜色
|
||
};
|
||
type Update = {
|
||
"id": number; // ID
|
||
"name": string; // 名称
|
||
"color"?: string; // 颜色
|
||
};
|
||
type Delete = {
|
||
"id": number; // ID
|
||
};
|
||
type GetPermissions = {
|
||
"id": number; // ID
|
||
};
|
||
type SetPermissions = {
|
||
"id": number; // ID
|
||
"permissions_ids": string[]; // 权限ID
|
||
};
|
||
}
|
||
}
|
||
}
|