对接 投诉详情 投诉列表 选择处理人员 api

This commit is contained in:
Zy
2026-05-15 18:11:54 +08:00
parent 8324d096c0
commit 84a7a24288
13 changed files with 604 additions and 240 deletions

View File

@@ -0,0 +1,73 @@
/**
* @Description: (计划中)公共接口
* @Author: Zy
* @Date: 2026-05-15 11:37:01
* @LastEditor: Zy
* @LastEditTime: 2026-05-15 17:02:25
*/
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, keyword) {
return get(`/manage/replace/sdb/village/house?pageSize=${data.pageSize}&pageNum=${data.pageNum}&keyword=${keyword}`)
}