Files
hose-use/openapi/components/schemas/index.yaml
T
2026-08-27 11:48:20 +08:00

168 lines
3.4 KiB
YAML

ErrorResponse:
type: object
properties:
error:
type: boolean
example: true
message:
type: string
example: 操作失败原因
AuthLoginRequest:
type: object
required:
- phone
- password
properties:
phone:
type: string
description: 登录手机号
example: "17718556446"
password:
type: string
description: 登录明文密码 (由客户端自动完成 RSA 加密)
autoSwitch:
type: boolean
description: 是否自动切换到首个企业
default: true
AuthStatusResponse:
type: object
properties:
loggedIn:
type: boolean
activeCorpId:
type: string
activeCorpName:
type: string
totalAccounts:
type: integer
totalCorps:
type: integer
CorpConfig:
type: object
properties:
corpId:
type: string
description: 企业唯一标识
corpName:
type: string
description: 企业名称
staffId:
type: string
description: 员工身份 ID
accountId:
type: string
description: 归属账号手机号
PlatformItem:
type: object
properties:
id:
type: string
description: 自建应用 ID
name:
type: string
description: 自建应用名称
code:
type: string
description: 应用编码
status:
type: string
description: 应用状态
WorkflowSummary:
type: object
properties:
id:
type: string
description: 工作流 ID
name:
type: string
description: 工作流名称
platformId:
type: string
description: 归属自建应用 ID
platformName:
type: string
description: 归属自建应用名称
state:
type: integer
description: "1: 启用, 0: 停用"
updatedAt:
type: string
WorkflowDetail:
type: object
properties:
id:
type: string
name:
type: string
state:
type: integer
nodes:
type: array
items:
type: object
description: 工作流节点列表 (code-js2, loop, sql 等)
links:
type: array
items:
type: object
ProbeResult:
type: object
properties:
corpId:
type: string
corpName:
type: string
mainSession:
type: boolean
description: 主站会话是否有效
easoToken:
type: boolean
description: EASO 平台 Token 是否有效
platformsReachable:
type: boolean
description: 自建应用接口是否可访问
FormattedBill:
type: object
properties:
billId:
type: string
description: 单据 ID
billCode:
type: string
description: 单据业务编号 (单号)
billName:
type: string
description: 单据名称
title:
type: string
description: 单据标题
stage:
type: string
description: 业务阶段 (如 expense, loan, payment)
state:
type: string
description: 审批/支付状态 (如 paid, approving, draft)
amount:
type: string
description: 格式化金额 (如 ¥100.00 CNY)
submitterId:
type: string
description: 提交人员 ID
submitDate:
type: string
description: 提交时间
corporationId:
type: string
description: 归属企业 ID
details:
type: object
description: DataLink 字段字典还原后的中文字段键值对