83 lines
2.2 KiB
JavaScript
83 lines
2.2 KiB
JavaScript
/**
|
|
* @Description: (计划中)公共接口
|
|
* @Author: Zy
|
|
* @Date: 2026-05-15 11:37:01
|
|
* @LastEditor: Zy
|
|
* @LastEditTime: 2026-05-18 15:34:07
|
|
*/
|
|
import request, {
|
|
get,
|
|
post
|
|
} from './request.js'
|
|
|
|
/**
|
|
* @typedef EmployeeItem 员工信息项
|
|
* @property {string} userId
|
|
* @property {string} tenantId
|
|
* @property {string} villageIds
|
|
* @property {string} roleName
|
|
* @property {string} userName
|
|
* @property {string} nickName
|
|
* @property {string} userType
|
|
* @property {string} email
|
|
* @property {string} phonenumber
|
|
* @property {string} sex
|
|
* @property {string} avatar
|
|
* @property {string} status
|
|
* @property {string} loginIp
|
|
* @property {string} loginDate
|
|
* @property {string} remark
|
|
* @property {string} createTime
|
|
* @property {string} roles
|
|
* @property {string} roleIds
|
|
* @property {string} postIds
|
|
* @property {string} roleId
|
|
*/
|
|
|
|
/**
|
|
* 获取对应类型的员工信息列表
|
|
* @param {RoleKeyEnum} roleKey - 角色标识
|
|
* @param {string} [keyword=''] - 搜索关键词(可选),手机号/姓名
|
|
* @returns {Promise<DataResult<EmployeeItem[]>>}
|
|
*/
|
|
export function getSystemUsers_employee(roleKey, keyword) {
|
|
return get(`/manage/repair/person/users?roleKey=${roleKey}&keyword=${keyword}`)
|
|
}
|
|
|
|
/**
|
|
* @typedef HouseItem 房屋信息项
|
|
* @property {string} addressCn
|
|
* @property {string} addressHyphen
|
|
* @property {string} buildingName
|
|
* @property {number} floorNo
|
|
* @property {string} houseId
|
|
* @property {string} houseNo
|
|
* @property {string} userType
|
|
* @property {string} residentName
|
|
* @property {number} unitNo
|
|
*/
|
|
/**
|
|
* 获取 小区房屋 列表
|
|
* @param {Object} data - 请求参数
|
|
* @param {number} data.pageNum - 页码(第几页)
|
|
* @param {number} data.pageSize - 每页条数
|
|
* @param {string} [keyword=''] - 搜索关键词(可选),房屋号/业主姓名
|
|
* @returns {Promise<RowsResult<HouseItem>>}
|
|
*/
|
|
export function getVillageHouseList_keyword(data, searchValue = '') {
|
|
return get(
|
|
`/manage/replace/sdb/village/house?pageSize=${data.pageSize}&pageNum=${data.pageNum}&searchValue=${searchValue}`
|
|
)
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* @description: 管家端通用 文件上传
|
|
* @param {FormData} file
|
|
* @return
|
|
*/
|
|
export function uploadFile(file) {
|
|
return post('/resource/oss/upload', file)
|
|
}
|