Skip to content

获取员工详情 API

PathMethodCreated At
/api/accounts/employees/{id}/detailGET2025-11-29 00:39:11

Request

KeyRuleDescription
idinteger,min:0trans:validate.EMPLOYEE_NOT_FOUND

Response

KeyTypeExampleComment
idint1员工编号
namestring张三姓名
avatarstringhttps://xxx.com/avatar.jpg头像
usernamestringZhangSan登录用户名
phonestring13912345678手机号
emailstringusername@domain.com邮箱
departmentsarray[{"id": 1, "name": "商务部门"}, {"id": 2, "name": "技术部门"}]所在部门列表
positionNamestring商务主管岗位名称
createdAtstring2024-01-02 03:04:05加入时间
isEmployeebooltrue是否为员工

TypeScript Result Example:

TypeScript
interface Result {
  /** 员工编号 */
  id: number;
  /** 姓名 */
  name: string;
  /** 头像 */
  avatar: string;
  /** 登录用户名 */
  username: string;
  /** 手机号 */
  phone: string;
  /** 邮箱 */
  email: string;
  /** 所在部门列表 */
  departments: any;
  /** 岗位名称 */
  positionName: string;
  /** 加入时间 */
  createdAt: string;
  /** 是否为员工 */
  isEmployee: any;
}