7423 lines
220 KiB
YAML
7423 lines
220 KiB
YAML
openapi: 3.1.0
|
|
info:
|
|
title: Ydisks 闲鱼助手 API
|
|
version: 1.0.0
|
|
description: 版本化 HTTP API 的唯一契约源。
|
|
servers:
|
|
- url: /
|
|
paths:
|
|
"/api/v1/account-tasks/{cid}":
|
|
get:
|
|
operationId: getApiV1AccountTasksBycid
|
|
summary: getApiV1AccountTasksBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1AccountTasksBycid
|
|
summary: putApiV1AccountTasksBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/account-tasks/{cid}/run":
|
|
post:
|
|
operationId: postApiV1AccountTasksBycidRun
|
|
summary: postApiV1AccountTasksBycidRun
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/account-tasks/{cid}/runs":
|
|
get:
|
|
operationId: getApiV1AccountTasksBycidRuns
|
|
summary: getApiV1AccountTasksBycidRuns
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts":
|
|
get:
|
|
operationId: getApiV1Accounts
|
|
summary: getApiV1Accounts
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountIDList'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
post:
|
|
operationId: postApiV1Accounts
|
|
summary: postApiV1Accounts
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountCreateRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountMutationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/{cid}":
|
|
delete:
|
|
operationId: deleteApiV1AccountsBycid
|
|
summary: deleteApiV1AccountsBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
get:
|
|
operationId: getApiV1AccountsBycid
|
|
summary: getApiV1AccountsBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountDetailResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1AccountsBycid
|
|
summary: putApiV1AccountsBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountUpdateRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/{cid}/auto-confirm":
|
|
get:
|
|
operationId: getApiV1AccountsBycidAutoConfirm
|
|
summary: getApiV1AccountsBycidAutoConfirm
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AutoConfirmResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1AccountsBycidAutoConfirm
|
|
summary: putApiV1AccountsBycidAutoConfirm
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AutoConfirmRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/{cid}/login-info":
|
|
put:
|
|
operationId: putApiV1AccountsBycidLoginInfo
|
|
summary: putApiV1AccountsBycidLoginInfo
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountLoginInfoRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/{cid}/long-login":
|
|
get:
|
|
operationId: getApiV1AccountsBycidLongLogin
|
|
summary: getApiV1AccountsBycidLongLogin
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/LongLoginResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1AccountsBycidLongLogin
|
|
summary: putApiV1AccountsBycidLongLogin
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/LongLoginSettingsRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/LongLoginResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/{cid}/pause-duration":
|
|
get:
|
|
operationId: getApiV1AccountsBycidPauseDuration
|
|
summary: getApiV1AccountsBycidPauseDuration
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/PauseDurationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1AccountsBycidPauseDuration
|
|
summary: putApiV1AccountsBycidPauseDuration
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/PauseDurationRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CookieSettingsResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/{cid}/refresh-profile":
|
|
post:
|
|
operationId: postApiV1AccountsBycidRefreshProfile
|
|
summary: postApiV1AccountsBycidRefreshProfile
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CookieProfileResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/{cid}/remark":
|
|
put:
|
|
operationId: putApiV1AccountsBycidRemark
|
|
summary: putApiV1AccountsBycidRemark
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountRemarkRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/{cid}/settings":
|
|
put:
|
|
operationId: putApiV1AccountsBycidSettings
|
|
summary: putApiV1AccountsBycidSettings
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountSettingsUpdateRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CookieSettingsResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/{cid}/status":
|
|
put:
|
|
operationId: putApiV1AccountsBycidStatus
|
|
summary: putApiV1AccountsBycidStatus
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountStatusRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/details":
|
|
get:
|
|
operationId: getApiV1AccountsDetails
|
|
summary: getApiV1AccountsDetails
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AccountDetailList'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/accounts/runtime-status":
|
|
get:
|
|
operationId: getApiV1AccountsRuntimeStatus
|
|
summary: getApiV1AccountsRuntimeStatus
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/RuntimeStatusMap'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/admin/cookies":
|
|
get:
|
|
operationId: getApiV1AdminCookies
|
|
summary: getApiV1AdminCookies
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/AdminCookie'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/admin/notifications/outbox/uncertain":
|
|
get:
|
|
operationId: getApiV1AdminNotificationsOutboxUncertain
|
|
summary: getApiV1AdminNotificationsOutboxUncertain
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/admin/password":
|
|
post:
|
|
operationId: postApiV1AdminPassword
|
|
summary: postApiV1AdminPassword
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/admin/stats":
|
|
get:
|
|
operationId: getApiV1AdminStats
|
|
summary: getApiV1AdminStats
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AdminStatsResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/admin/tasks":
|
|
get:
|
|
operationId: getApiV1AdminTasks
|
|
summary: getApiV1AdminTasks
|
|
security: [{cookieAuth: []}]
|
|
parameters:
|
|
- name: limit
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1, maximum: 128}
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/AdminTask'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/admin/users":
|
|
get:
|
|
operationId: getApiV1AdminUsers
|
|
summary: getApiV1AdminUsers
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/AdminUser'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/admin/users/{user_id}":
|
|
delete:
|
|
operationId: deleteApiV1AdminUsersByuser_id
|
|
summary: deleteApiV1AdminUsersByuser_id
|
|
parameters:
|
|
- name: user_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: integer
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/analytics/dashboard":
|
|
get:
|
|
operationId: getApiV1AnalyticsDashboard
|
|
summary: getApiV1AnalyticsDashboard
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/DashboardStatsResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/analytics/orders":
|
|
get:
|
|
operationId: getApiV1AnalyticsOrders
|
|
summary: getApiV1AnalyticsOrders
|
|
security: [{cookieAuth: []}]
|
|
parameters:
|
|
- name: start_date
|
|
in: query
|
|
required: true
|
|
schema: {type: string, format: date}
|
|
- name: end_date
|
|
in: query
|
|
required: true
|
|
schema: {type: string, format: date}
|
|
- name: timezone_offset_minutes
|
|
in: query
|
|
required: false
|
|
schema: {type: integer}
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AnalyticsResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/analytics/orders/valid":
|
|
get:
|
|
operationId: getApiV1AnalyticsOrdersValid
|
|
summary: getApiV1AnalyticsOrdersValid
|
|
security: [{cookieAuth: []}]
|
|
parameters:
|
|
- name: start_date
|
|
in: query
|
|
required: true
|
|
schema: {type: string, format: date}
|
|
- name: end_date
|
|
in: query
|
|
required: true
|
|
schema: {type: string, format: date}
|
|
- name: timezone_offset_minutes
|
|
in: query
|
|
required: false
|
|
schema: {type: integer}
|
|
- name: page
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1}
|
|
- name: page_size
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1, maximum: 500}
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ValidOrdersResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/automation-issues":
|
|
get:
|
|
operationId: getApiV1AutomationIssues
|
|
summary: getApiV1AutomationIssues
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/automation-pending-tasks/{task_id}/resolve":
|
|
post:
|
|
operationId: postApiV1AutomationPendingTasksBytask_idResolve
|
|
summary: postApiV1AutomationPendingTasksBytask_idResolve
|
|
parameters:
|
|
- name: task_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/automation-rules":
|
|
get:
|
|
operationId: getApiV1AutomationRules
|
|
summary: getApiV1AutomationRules
|
|
security: [{cookieAuth: []}]
|
|
parameters:
|
|
- name: page
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1}
|
|
- name: page_size
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1, maximum: 100}
|
|
- name: cookie_id
|
|
in: query
|
|
required: false
|
|
schema: {type: string}
|
|
- name: trigger_type
|
|
in: query
|
|
required: false
|
|
schema: {type: string}
|
|
- name: enabled
|
|
in: query
|
|
required: false
|
|
schema: {type: boolean}
|
|
- name: search
|
|
in: query
|
|
required: false
|
|
schema: {type: string}
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
post:
|
|
operationId: postApiV1AutomationRules
|
|
summary: postApiV1AutomationRules
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/automation-rules/{rule_id}":
|
|
delete:
|
|
operationId: deleteApiV1AutomationRulesByrule_id
|
|
summary: deleteApiV1AutomationRulesByrule_id
|
|
parameters:
|
|
- name: rule_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1AutomationRulesByrule_id
|
|
summary: putApiV1AutomationRulesByrule_id
|
|
parameters:
|
|
- name: rule_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/automation-runs/{run_id}/resolve":
|
|
post:
|
|
operationId: postApiV1AutomationRunsByrun_idResolve
|
|
summary: postApiV1AutomationRunsByrun_idResolve
|
|
parameters:
|
|
- name: run_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/cards":
|
|
get:
|
|
operationId: getApiV1Cards
|
|
summary: getApiV1Cards
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/CardResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
post:
|
|
operationId: postApiV1Cards
|
|
summary: postApiV1Cards
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/cards/{card_id}":
|
|
delete:
|
|
operationId: deleteApiV1CardsBycard_id
|
|
summary: deleteApiV1CardsBycard_id
|
|
parameters:
|
|
- name: card_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
get:
|
|
operationId: getApiV1CardsBycard_id
|
|
summary: getApiV1CardsBycard_id
|
|
parameters:
|
|
- name: card_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1CardsBycard_id
|
|
summary: putApiV1CardsBycard_id
|
|
parameters:
|
|
- name: card_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/cards/{card_id}/append-data":
|
|
post:
|
|
operationId: postApiV1CardsBycard_idAppendData
|
|
summary: postApiV1CardsBycard_idAppendData
|
|
parameters:
|
|
- name: card_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/cards/{card_id}/details":
|
|
get:
|
|
operationId: getApiV1CardsBycard_idDetails
|
|
summary: getApiV1CardsBycard_idDetails
|
|
parameters:
|
|
- name: card_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/cards/batch":
|
|
post:
|
|
operationId: postApiV1CardsBatch
|
|
summary: postApiV1CardsBatch
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/chat/images":
|
|
post:
|
|
operationId: postApiV1ChatImages
|
|
summary: postApiV1ChatImages
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
multipart/form-data:
|
|
schema:
|
|
type: object
|
|
required: [account_id, chat_id, buyer_id, image]
|
|
properties:
|
|
account_id: {type: string}
|
|
chat_id: {type: string}
|
|
buyer_id: {type: string}
|
|
buyer_name: {type: string}
|
|
buyer_avatar_url: {type: string}
|
|
item_id: {type: string}
|
|
item_title: {type: string}
|
|
image: {type: string, format: binary}
|
|
responses:
|
|
'201':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ChatMessageEnvelope'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/chat/messages":
|
|
get:
|
|
operationId: getApiV1ChatMessages
|
|
summary: getApiV1ChatMessages
|
|
security: [{cookieAuth: []}]
|
|
parameters:
|
|
- name: account_id
|
|
in: query
|
|
required: true
|
|
schema: {type: string}
|
|
- name: chat_id
|
|
in: query
|
|
required: true
|
|
schema: {type: string}
|
|
- name: cursor
|
|
in: query
|
|
required: false
|
|
schema: {type: integer}
|
|
- name: before_id
|
|
in: query
|
|
required: false
|
|
schema: {type: integer}
|
|
- name: limit
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1, maximum: 200}
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ChatMessagePage'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
post:
|
|
operationId: postApiV1ChatMessages
|
|
summary: postApiV1ChatMessages
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ChatMessageRequest'
|
|
responses:
|
|
'201':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ChatMessageEnvelope'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/chat/read":
|
|
post:
|
|
operationId: postApiV1ChatRead
|
|
summary: postApiV1ChatRead
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ChatReadRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/chat/sessions":
|
|
get:
|
|
operationId: getApiV1ChatSessions
|
|
summary: getApiV1ChatSessions
|
|
security: [{cookieAuth: []}]
|
|
parameters:
|
|
- name: account_id
|
|
in: query
|
|
required: true
|
|
schema: {type: string}
|
|
- name: cursor
|
|
in: query
|
|
required: false
|
|
schema: {type: integer}
|
|
- name: refresh
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, enum: [0, 1]}
|
|
- name: limit
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1, maximum: 200}
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ChatSessionPage'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/chat/ws":
|
|
get:
|
|
operationId: getApiV1ChatWs
|
|
summary: getApiV1ChatWs
|
|
security: [{cookieAuth: []}]
|
|
x-websocket-message-schema:
|
|
$ref: '#/components/schemas/ChatWebSocketEvent'
|
|
responses:
|
|
'101':
|
|
description: WebSocket 握手成功
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/default-replies":
|
|
get:
|
|
operationId: getApiV1DefaultReplies
|
|
summary: getApiV1DefaultReplies
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/default-replies/{cid}":
|
|
delete:
|
|
operationId: deleteApiV1DefaultRepliesBycid
|
|
summary: deleteApiV1DefaultRepliesBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
get:
|
|
operationId: getApiV1DefaultRepliesBycid
|
|
summary: getApiV1DefaultRepliesBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1DefaultRepliesBycid
|
|
summary: putApiV1DefaultRepliesBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/default-replies/{cid}/clear-records":
|
|
post:
|
|
operationId: postApiV1DefaultRepliesBycidClearRecords
|
|
summary: postApiV1DefaultRepliesBycidClearRecords
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/default-replies/list":
|
|
get:
|
|
operationId: getApiV1DefaultRepliesList
|
|
summary: getApiV1DefaultRepliesList
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items":
|
|
get:
|
|
operationId: getApiV1Items
|
|
summary: getApiV1Items
|
|
security: [{cookieAuth: []}]
|
|
parameters:
|
|
- name: cookie_id
|
|
in: query
|
|
required: false
|
|
schema: {type: string}
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/ItemListResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/{cookie_id}":
|
|
post:
|
|
operationId: postApiV1ItemsBycookie_id
|
|
summary: postApiV1ItemsBycookie_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/{cookie_id}/{item_id}":
|
|
delete:
|
|
operationId: deleteApiV1ItemsBycookie_idByitem_id
|
|
summary: deleteApiV1ItemsBycookie_idByitem_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: item_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
get:
|
|
operationId: getApiV1ItemsBycookie_idByitem_id
|
|
summary: getApiV1ItemsBycookie_idByitem_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: item_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1ItemsBycookie_idByitem_id
|
|
summary: putApiV1ItemsBycookie_idByitem_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: item_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/{cookie_id}/{item_id}/multi-quantity-delivery":
|
|
put:
|
|
operationId: putApiV1ItemsBycookie_idByitem_idMultiQuantityDelivery
|
|
summary: putApiV1ItemsBycookie_idByitem_idMultiQuantityDelivery
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: item_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/{cookie_id}/{item_id}/multi-spec":
|
|
put:
|
|
operationId: putApiV1ItemsBycookie_idByitem_idMultiSpec
|
|
summary: putApiV1ItemsBycookie_idByitem_idMultiSpec
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: item_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/cookie/{cookie_id}":
|
|
get:
|
|
operationId: getApiV1ItemsCookieBycookie_id
|
|
summary: getApiV1ItemsCookieBycookie_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/get-all-from-account":
|
|
post:
|
|
operationId: postApiV1ItemsGetAllFromAccount
|
|
summary: postApiV1ItemsGetAllFromAccount
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/get-by-page":
|
|
post:
|
|
operationId: postApiV1ItemsGetByPage
|
|
summary: postApiV1ItemsGetByPage
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/publish":
|
|
post:
|
|
operationId: postApiV1ItemsPublish
|
|
summary: postApiV1ItemsPublish
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/publish-batches":
|
|
get:
|
|
operationId: getApiV1ItemsPublishBatches
|
|
summary: getApiV1ItemsPublishBatches
|
|
security: [{cookieAuth: []}]
|
|
parameters:
|
|
- name: limit
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1, maximum: 100}
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
post:
|
|
operationId: postApiV1ItemsPublishBatches
|
|
summary: postApiV1ItemsPublishBatches
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/publish-batches/{batch_id}":
|
|
delete:
|
|
operationId: deleteApiV1ItemsPublishBatchesBybatch_id
|
|
summary: deleteApiV1ItemsPublishBatchesBybatch_id
|
|
parameters:
|
|
- name: batch_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
get:
|
|
operationId: getApiV1ItemsPublishBatchesBybatch_id
|
|
summary: getApiV1ItemsPublishBatchesBybatch_id
|
|
parameters:
|
|
- name: batch_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/publish-batches/{batch_id}/cancel":
|
|
post:
|
|
operationId: postApiV1ItemsPublishBatchesBybatch_idCancel
|
|
summary: postApiV1ItemsPublishBatchesBybatch_idCancel
|
|
parameters:
|
|
- name: batch_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/publish-batches/{batch_id}/result.csv":
|
|
get:
|
|
operationId: getApiV1ItemsPublishBatchesBybatch_idResultCsv
|
|
summary: getApiV1ItemsPublishBatchesBybatch_idResultCsv
|
|
parameters:
|
|
- name: batch_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: CSV 文件
|
|
content:
|
|
text/csv:
|
|
schema:
|
|
type: string
|
|
format: binary
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/publish-batches/{batch_id}/retry-failed":
|
|
post:
|
|
operationId: postApiV1ItemsPublishBatchesBybatch_idRetryFailed
|
|
summary: postApiV1ItemsPublishBatchesBybatch_idRetryFailed
|
|
parameters:
|
|
- name: batch_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/publish-batches/preview":
|
|
post:
|
|
operationId: postApiV1ItemsPublishBatchesPreview
|
|
summary: postApiV1ItemsPublishBatchesPreview
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/items/publish-categories/recommend":
|
|
post:
|
|
operationId: postApiV1ItemsPublishCategoriesRecommend
|
|
summary: postApiV1ItemsPublishCategoriesRecommend
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/notifications/accounts/{cid}/bindings":
|
|
get:
|
|
operationId: getApiV1NotificationsAccountsBycidBindings
|
|
summary: getApiV1NotificationsAccountsBycidBindings
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
post:
|
|
operationId: postApiV1NotificationsAccountsBycidBindings
|
|
summary: postApiV1NotificationsAccountsBycidBindings
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/notifications/channels":
|
|
get:
|
|
operationId: getApiV1NotificationsChannels
|
|
summary: getApiV1NotificationsChannels
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/NotificationChannelResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
post:
|
|
operationId: postApiV1NotificationsChannels
|
|
summary: postApiV1NotificationsChannels
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/notifications/channels/{channel_id}":
|
|
delete:
|
|
operationId: deleteApiV1NotificationsChannelsBychannel_id
|
|
summary: deleteApiV1NotificationsChannelsBychannel_id
|
|
parameters:
|
|
- name: channel_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1NotificationsChannelsBychannel_id
|
|
summary: putApiV1NotificationsChannelsBychannel_id
|
|
parameters:
|
|
- name: channel_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/notifications/channels/{channel_id}/test":
|
|
post:
|
|
operationId: postApiV1NotificationsChannelsBychannel_idTest
|
|
summary: postApiV1NotificationsChannelsBychannel_idTest
|
|
parameters:
|
|
- name: channel_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/notifications/messages":
|
|
get:
|
|
operationId: getApiV1NotificationsMessages
|
|
summary: getApiV1NotificationsMessages
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/NotificationBindingsByAccount'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/notifications/messages/{notification_id}":
|
|
delete:
|
|
operationId: deleteApiV1NotificationsMessagesBynotification_id
|
|
summary: deleteApiV1NotificationsMessagesBynotification_id
|
|
parameters:
|
|
- name: notification_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/notifications/messages/account/{cid}":
|
|
delete:
|
|
operationId: deleteApiV1NotificationsMessagesAccountBycid
|
|
summary: deleteApiV1NotificationsMessagesAccountBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/notifications/outbox/uncertain":
|
|
get:
|
|
operationId: getApiV1NotificationsOutboxUncertain
|
|
summary: getApiV1NotificationsOutboxUncertain
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/orders":
|
|
get:
|
|
operationId: getApiV1Orders
|
|
summary: getApiV1Orders
|
|
security: [{cookieAuth: []}]
|
|
parameters:
|
|
- name: cookie_id
|
|
in: query
|
|
required: false
|
|
schema: {type: string}
|
|
- name: status
|
|
in: query
|
|
required: false
|
|
schema: {type: string}
|
|
- name: search
|
|
in: query
|
|
required: false
|
|
schema: {type: string}
|
|
- name: page
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1}
|
|
- name: page_size
|
|
in: query
|
|
required: false
|
|
schema: {type: integer, minimum: 1, maximum: 500}
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrderListResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/orders/{order_id}":
|
|
delete:
|
|
operationId: deleteApiV1OrdersByorder_id
|
|
summary: deleteApiV1OrdersByorder_id
|
|
parameters:
|
|
- name: order_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
get:
|
|
operationId: getApiV1OrdersByorder_id
|
|
summary: getApiV1OrdersByorder_id
|
|
parameters:
|
|
- name: order_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrderDetailResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1OrdersByorder_id
|
|
summary: putApiV1OrdersByorder_id
|
|
parameters:
|
|
- name: order_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrderUpdateRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/orders/{order_id}/refresh":
|
|
post:
|
|
operationId: postApiV1OrdersByorder_idRefresh
|
|
summary: postApiV1OrdersByorder_idRefresh
|
|
parameters:
|
|
- name: order_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrderSingleRefreshResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/orders/import":
|
|
post:
|
|
operationId: postApiV1OrdersImport
|
|
summary: postApiV1OrdersImport
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
multipart/form-data:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
file: {type: string, format: binary}
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/OrderUpdateRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrderBatchResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/orders/manual-ship":
|
|
post:
|
|
operationId: postApiV1OrdersManualShip
|
|
summary: postApiV1OrdersManualShip
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ManualShipRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrderBatchResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/orders/refresh":
|
|
post:
|
|
operationId: postApiV1OrdersRefresh
|
|
summary: postApiV1OrdersRefresh
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
multipart/form-data:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
cookie_id: {type: string}
|
|
status: {type: string}
|
|
responses:
|
|
'202':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrderRefreshJobStartResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/orders/refresh/{job_id}":
|
|
delete:
|
|
operationId: deleteApiV1OrdersRefreshByjob_id
|
|
summary: deleteApiV1OrdersRefreshByjob_id
|
|
parameters:
|
|
- name: job_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrderRefreshJobCancelResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
get:
|
|
operationId: getApiV1OrdersRefreshByjob_id
|
|
summary: getApiV1OrdersRefreshByjob_id
|
|
parameters:
|
|
- name: job_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrderRefreshJobStatusResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/password-login":
|
|
post:
|
|
operationId: postApiV1PasswordLogin
|
|
summary: postApiV1PasswordLogin
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: false
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/PasswordLoginDisabledRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'501':
|
|
description: 密码登录已永久关闭
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/password-login/cancel/{session_id}":
|
|
delete:
|
|
operationId: deleteApiV1PasswordLoginCancelBysession_id
|
|
summary: deleteApiV1PasswordLoginCancelBysession_id
|
|
parameters:
|
|
- name: session_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'501':
|
|
description: 密码登录已永久关闭
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/password-login/check/{session_id}":
|
|
get:
|
|
operationId: getApiV1PasswordLoginCheckBysession_id
|
|
summary: getApiV1PasswordLoginCheckBysession_id
|
|
parameters:
|
|
- name: session_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'501':
|
|
description: 密码登录已永久关闭
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/qr-login/check/{session_id}":
|
|
get:
|
|
operationId: getApiV1QrLoginCheckBysession_id
|
|
summary: getApiV1QrLoginCheckBysession_id
|
|
parameters:
|
|
- name: session_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/QRLoginStatusResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/qr-login/complete-verification/{session_id}":
|
|
post:
|
|
operationId: postApiV1QrLoginCompleteVerificationBysession_id
|
|
summary: postApiV1QrLoginCompleteVerificationBysession_id
|
|
parameters:
|
|
- name: session_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: false
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/QRLoginVerificationRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/QRLoginVerificationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/qr-login/generate":
|
|
post:
|
|
operationId: postApiV1QrLoginGenerate
|
|
summary: postApiV1QrLoginGenerate
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/QRLoginGenerateResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/qr-login/status/{session_id}":
|
|
get:
|
|
operationId: getApiV1QrLoginStatusBysession_id
|
|
summary: getApiV1QrLoginStatusBysession_id
|
|
parameters:
|
|
- name: session_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/QRLoginStatusResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/reply-rules/{cid}":
|
|
get:
|
|
operationId: getApiV1ReplyRulesBycid
|
|
summary: getApiV1ReplyRulesBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
post:
|
|
operationId: postApiV1ReplyRulesBycid
|
|
summary: postApiV1ReplyRulesBycid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/reply-rules/{cid}/index/{index}":
|
|
delete:
|
|
operationId: deleteApiV1ReplyRulesBycidIndexByindex
|
|
summary: deleteApiV1ReplyRulesBycidIndexByindex
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: index
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/reply-rules/{cid}/items":
|
|
get:
|
|
operationId: getApiV1ReplyRulesBycidItems
|
|
summary: getApiV1ReplyRulesBycidItems
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
post:
|
|
operationId: postApiV1ReplyRulesBycidItems
|
|
summary: postApiV1ReplyRulesBycidItems
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/reply-rules/{cid}/typed":
|
|
get:
|
|
operationId: getApiV1ReplyRulesBycidTyped
|
|
summary: getApiV1ReplyRulesBycidTyped
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/reply-rules/{cid}/typed/{id}":
|
|
delete:
|
|
operationId: deleteApiV1ReplyRulesBycidTypedByid
|
|
summary: deleteApiV1ReplyRulesBycidTypedByid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1ReplyRulesBycidTypedByid
|
|
summary: putApiV1ReplyRulesBycidTypedByid
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/reply-rules/items":
|
|
get:
|
|
operationId: getApiV1ReplyRulesItems
|
|
summary: getApiV1ReplyRulesItems
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/reply-rules/items/{cookie_id}/{item_id}":
|
|
delete:
|
|
operationId: deleteApiV1ReplyRulesItemsBycookie_idByitem_id
|
|
summary: deleteApiV1ReplyRulesItemsBycookie_idByitem_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: item_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
get:
|
|
operationId: getApiV1ReplyRulesItemsBycookie_idByitem_id
|
|
summary: getApiV1ReplyRulesItemsBycookie_idByitem_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: item_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1ReplyRulesItemsBycookie_idByitem_id
|
|
summary: putApiV1ReplyRulesItemsBycookie_idByitem_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
- name: item_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/session":
|
|
get:
|
|
operationId: getApiV1Session
|
|
summary: getApiV1Session
|
|
security: []
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SessionStatusResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/session/credentials":
|
|
put:
|
|
operationId: putApiV1SessionCredentials
|
|
summary: putApiV1SessionCredentials
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CredentialUpdateRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/session/initialize":
|
|
post:
|
|
operationId: postApiV1SessionInitialize
|
|
summary: postApiV1SessionInitialize
|
|
security: []
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/InitializeRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SessionResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/session/login":
|
|
post:
|
|
operationId: postApiV1SessionLogin
|
|
summary: postApiV1SessionLogin
|
|
security: []
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/LoginRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SessionResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/session/logout":
|
|
post:
|
|
operationId: postApiV1SessionLogout
|
|
summary: postApiV1SessionLogout
|
|
security: []
|
|
requestBody:
|
|
required: false
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/EmptyRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/MessageResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/session/password":
|
|
post:
|
|
operationId: postApiV1SessionPassword
|
|
summary: postApiV1SessionPassword
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/PasswordChangeRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/settings/ai-models":
|
|
post:
|
|
operationId: postApiV1SettingsAiModels
|
|
summary: postApiV1SettingsAiModels
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AIModelsRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AIModelsResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/settings/ai-reply":
|
|
get:
|
|
operationId: getApiV1SettingsAiReply
|
|
summary: getApiV1SettingsAiReply
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/settings/ai-reply/{cookie_id}":
|
|
get:
|
|
operationId: getApiV1SettingsAiReplyBycookie_id
|
|
summary: getApiV1SettingsAiReplyBycookie_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1SettingsAiReplyBycookie_id
|
|
summary: putApiV1SettingsAiReplyBycookie_id
|
|
parameters:
|
|
- name: cookie_id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/settings/system":
|
|
get:
|
|
operationId: getApiV1SettingsSystem
|
|
summary: getApiV1SettingsSystem
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SystemSettingsResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1SettingsSystem
|
|
summary: putApiV1SettingsSystem
|
|
security: [{cookieAuth: []}]
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SystemSettingsUpdateRequest'
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OperationResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/settings/system/{key}":
|
|
put:
|
|
operationId: putApiV1SettingsSystemBykey
|
|
summary: putApiV1SettingsSystemBykey
|
|
parameters:
|
|
- name: key
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/settings/system/public":
|
|
get:
|
|
operationId: getApiV1SettingsSystemPublic
|
|
summary: getApiV1SettingsSystemPublic
|
|
security: []
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/settings/user":
|
|
get:
|
|
operationId: getApiV1SettingsUser
|
|
summary: getApiV1SettingsUser
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/api/v1/settings/user/{key}":
|
|
get:
|
|
operationId: getApiV1SettingsUserBykey
|
|
summary: getApiV1SettingsUserBykey
|
|
parameters:
|
|
- name: key
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
put:
|
|
operationId: putApiV1SettingsUserBykey
|
|
summary: putApiV1SettingsUserBykey
|
|
parameters:
|
|
- name: key
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
security: [{cookieAuth: []}]
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
"/health":
|
|
get:
|
|
operationId: getHealth
|
|
summary: getHealth
|
|
security: []
|
|
responses:
|
|
'200':
|
|
description: 成功
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/HealthResponse'
|
|
'400':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'401':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'403':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'404':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'500':
|
|
description: 统一错误响应
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
'503':
|
|
description: 数据库不可用
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/HealthDegradedResponse'
|
|
components:
|
|
securitySchemes:
|
|
cookieAuth:
|
|
type: apiKey
|
|
in: cookie
|
|
name: session
|
|
schemas:
|
|
ApiResponse:
|
|
type: object
|
|
required: [success]
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
description: 统一响应的稳定字段;业务成功字段由各阶段 operation schema 收紧。
|
|
HealthResponse:
|
|
type: object
|
|
required: [status, database, version, commit]
|
|
properties:
|
|
status: {type: string, enum: [ok]}
|
|
database: {type: string, enum: [ok]}
|
|
version: {type: string}
|
|
commit: {type: string}
|
|
build_time: {type: string}
|
|
HealthDegradedResponse:
|
|
type: object
|
|
required: [status, database]
|
|
properties:
|
|
status: {type: string, enum: [degraded]}
|
|
database: {type: string, enum: [unavailable]}
|
|
CardResponse:
|
|
type: object
|
|
required: [id, name, type, api_config, text_content, data_content, image_url, description, enabled, delay_seconds, is_multi_spec, spec_name, spec_value]
|
|
properties:
|
|
id: {type: integer}
|
|
name: {type: string}
|
|
type: {type: string, enum: [api, text, data, image]}
|
|
api_config: {type: string}
|
|
text_content: {type: string}
|
|
data_content: {type: string}
|
|
image_url: {type: string}
|
|
description: {type: string}
|
|
enabled: {type: boolean}
|
|
delay_seconds: {type: integer}
|
|
is_multi_spec: {type: boolean}
|
|
spec_name: {type: string}
|
|
spec_value: {type: string}
|
|
user_id: {type: integer}
|
|
ItemListResponse:
|
|
type: object
|
|
required: [id, cookie_id, item_id, item_title, item_description, item_category, item_price, item_detail, item_image, is_multi_spec, multi_quantity_delivery, is_multi_qty_ship]
|
|
properties:
|
|
id: {type: integer}
|
|
cookie_id: {type: string}
|
|
item_id: {type: string}
|
|
item_title: {type: string}
|
|
item_description: {type: string}
|
|
item_category: {type: string}
|
|
item_price: {type: string}
|
|
item_detail: {type: string}
|
|
item_image: {type: string}
|
|
is_multi_spec: {type: boolean}
|
|
multi_quantity_delivery: {type: boolean}
|
|
is_multi_qty_ship: {type: boolean}
|
|
NotificationChannelResponse:
|
|
type: object
|
|
required: [id, name, type, enabled]
|
|
properties:
|
|
id: {type: integer}
|
|
name: {type: string}
|
|
type: {type: string}
|
|
event_types: {type: string}
|
|
enabled: {type: boolean}
|
|
user_id: {type: integer}
|
|
NotificationBinding:
|
|
type: object
|
|
required: [id, channel_id, channel_name, enabled]
|
|
properties:
|
|
id: {type: integer}
|
|
channel_id: {type: integer}
|
|
channel_name: {type: string}
|
|
enabled: {type: boolean}
|
|
NotificationBindingsByAccount:
|
|
type: object
|
|
additionalProperties:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/NotificationBinding'
|
|
SessionResponse:
|
|
type: object
|
|
required: [success, message, is_admin]
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
token:
|
|
type: [string, 'null']
|
|
message:
|
|
type: string
|
|
user_id:
|
|
type: integer
|
|
username:
|
|
type: string
|
|
is_admin:
|
|
type: boolean
|
|
LoginRequest:
|
|
type: object
|
|
properties:
|
|
username:
|
|
type: string
|
|
password:
|
|
type: string
|
|
email:
|
|
type: string
|
|
verification_code:
|
|
type: string
|
|
InitializeRequest:
|
|
type: object
|
|
required: [password]
|
|
properties:
|
|
password:
|
|
type: string
|
|
PasswordChangeRequest:
|
|
type: object
|
|
required: [current_password, new_password]
|
|
properties:
|
|
current_password:
|
|
type: string
|
|
new_password:
|
|
type: string
|
|
PasswordLoginDisabledRequest:
|
|
type: object
|
|
properties:
|
|
account_id:
|
|
type: string
|
|
account:
|
|
type: string
|
|
password:
|
|
type: string
|
|
show_browser:
|
|
type: boolean
|
|
CredentialUpdateRequest:
|
|
type: object
|
|
required: [current_password, new_username]
|
|
properties:
|
|
current_password:
|
|
type: string
|
|
new_username:
|
|
type: string
|
|
new_password:
|
|
type: string
|
|
QRLoginVerificationRequest:
|
|
type: object
|
|
properties:
|
|
target_account_id:
|
|
type: string
|
|
EmptyRequest:
|
|
type: object
|
|
additionalProperties: false
|
|
AccountIDList:
|
|
type: array
|
|
items:
|
|
type: string
|
|
AccountCreateRequest:
|
|
type: object
|
|
required: [id, value]
|
|
properties:
|
|
id:
|
|
type: string
|
|
value:
|
|
type: string
|
|
login_method:
|
|
type: string
|
|
AccountUpdateRequest:
|
|
type: object
|
|
required: [value]
|
|
properties:
|
|
id:
|
|
type: string
|
|
value:
|
|
type: string
|
|
login_method:
|
|
type: string
|
|
last_refresh_at:
|
|
type: integer
|
|
AccountMutationResponse:
|
|
type: object
|
|
required: [success]
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
id:
|
|
type: string
|
|
AccountDetailResponse:
|
|
type: object
|
|
required: [id, has_cookie, enabled, auto_confirm, remark, pause_duration, paused_until, paused, show_browser, username, nickname, avatar_url, login_method, last_login_at, profile_error, auto_rate_enabled, rate_content, auto_polish_enabled, polish_time, last_rate_scan_at, last_polish_date, last_polish_at]
|
|
properties:
|
|
id:
|
|
type: string
|
|
has_cookie:
|
|
type: boolean
|
|
enabled:
|
|
type: boolean
|
|
auto_confirm:
|
|
type: boolean
|
|
remark:
|
|
type: string
|
|
pause_duration:
|
|
type: integer
|
|
paused_until:
|
|
type: integer
|
|
paused:
|
|
type: boolean
|
|
show_browser:
|
|
type: boolean
|
|
username:
|
|
type: string
|
|
nickname:
|
|
type: string
|
|
avatar_url:
|
|
type: string
|
|
login_method:
|
|
type: string
|
|
last_login_at:
|
|
type: integer
|
|
profile_error:
|
|
type: string
|
|
auto_rate_enabled:
|
|
type: boolean
|
|
rate_content:
|
|
type: string
|
|
auto_polish_enabled:
|
|
type: boolean
|
|
polish_time:
|
|
type: string
|
|
last_rate_scan_at:
|
|
type: integer
|
|
last_polish_date:
|
|
type: string
|
|
last_polish_at:
|
|
type: integer
|
|
AccountDetailList:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/AccountDetailResponse'
|
|
AccountStatusRequest:
|
|
type: object
|
|
required: [enabled]
|
|
properties:
|
|
enabled:
|
|
type: boolean
|
|
AccountSettingsUpdateRequest:
|
|
type: object
|
|
properties:
|
|
cookie:
|
|
type: string
|
|
remark:
|
|
type: string
|
|
auto_confirm:
|
|
type: boolean
|
|
pause_duration:
|
|
type: integer
|
|
minimum: 0
|
|
maximum: 1440
|
|
username:
|
|
type: string
|
|
login_password:
|
|
type: string
|
|
clear_password:
|
|
type: boolean
|
|
show_browser:
|
|
type: boolean
|
|
channel_ids:
|
|
type: array
|
|
items:
|
|
type: integer
|
|
AccountLoginInfoRequest:
|
|
type: object
|
|
properties:
|
|
username:
|
|
type: string
|
|
login_password:
|
|
type: string
|
|
clear_password:
|
|
type: boolean
|
|
show_browser:
|
|
type: boolean
|
|
LongLoginSettingsRequest:
|
|
type: object
|
|
required: [enabled]
|
|
properties:
|
|
enabled:
|
|
type: boolean
|
|
LongLoginResponse:
|
|
type: object
|
|
required: [can_open_long_login, enabled]
|
|
properties:
|
|
can_open_long_login:
|
|
type: boolean
|
|
enabled:
|
|
type: boolean
|
|
AutoConfirmRequest:
|
|
type: object
|
|
required: [auto_confirm]
|
|
properties:
|
|
auto_confirm:
|
|
type: boolean
|
|
AutoConfirmResponse:
|
|
type: object
|
|
required: [auto_confirm]
|
|
properties:
|
|
auto_confirm:
|
|
type: boolean
|
|
AccountRemarkRequest:
|
|
type: object
|
|
required: [remark]
|
|
properties:
|
|
remark:
|
|
type: string
|
|
maxLength: 500
|
|
PauseDurationRequest:
|
|
type: object
|
|
required: [pause_duration]
|
|
properties:
|
|
pause_duration:
|
|
type: integer
|
|
minimum: 0
|
|
maximum: 1440
|
|
PauseDurationResponse:
|
|
type: object
|
|
required: [pause_duration, paused_until, paused]
|
|
properties:
|
|
pause_duration:
|
|
type: integer
|
|
paused_until:
|
|
type: integer
|
|
paused:
|
|
type: boolean
|
|
CookieSettingsResponse:
|
|
type: object
|
|
required: [success, paused_until, paused]
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
paused_until:
|
|
type: integer
|
|
paused:
|
|
type: boolean
|
|
CookieProfileResponse:
|
|
type: object
|
|
required: [success, id, nickname, avatar_url, profile_error]
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
id:
|
|
type: string
|
|
nickname:
|
|
type: string
|
|
avatar_url:
|
|
type: string
|
|
profile_error:
|
|
type: string
|
|
RuntimeStatus:
|
|
type: object
|
|
required: [state, connected, failures, updated_at]
|
|
properties:
|
|
state:
|
|
type: string
|
|
enum: [starting, connecting, online, reconnecting, auth_expired, verification_required, runtime_conflict, error, stopped, disabled]
|
|
message:
|
|
type: string
|
|
connected:
|
|
type: boolean
|
|
failures:
|
|
type: integer
|
|
updated_at:
|
|
type: string
|
|
format: date-time
|
|
RuntimeStatusMap:
|
|
type: object
|
|
additionalProperties:
|
|
$ref: '#/components/schemas/RuntimeStatus'
|
|
AIModelsRequest:
|
|
type: object
|
|
required: [base_url]
|
|
properties:
|
|
base_url:
|
|
type: string
|
|
api_key:
|
|
type: string
|
|
AIModelsResponse:
|
|
type: object
|
|
required: [models]
|
|
properties:
|
|
models:
|
|
type: array
|
|
items:
|
|
type: string
|
|
SecretSettingChange:
|
|
type: object
|
|
required: [action]
|
|
properties:
|
|
action:
|
|
type: string
|
|
enum: [retain, replace, clear]
|
|
value:
|
|
type: string
|
|
SystemSettingValueMap:
|
|
type: object
|
|
additionalProperties:
|
|
oneOf:
|
|
- type: string
|
|
- type: number
|
|
- type: boolean
|
|
SystemSettingsUpdateRequest:
|
|
type: object
|
|
properties:
|
|
values:
|
|
$ref: '#/components/schemas/SystemSettingValueMap'
|
|
secrets:
|
|
type: object
|
|
additionalProperties:
|
|
$ref: '#/components/schemas/SecretSettingChange'
|
|
SystemSettingsResponse:
|
|
type: object
|
|
additionalProperties:
|
|
oneOf:
|
|
- type: string
|
|
- type: number
|
|
- type: boolean
|
|
ChatSession:
|
|
type: object
|
|
required: [account_id, chat_id, buyer_id, buyer_name, last_message, last_message_at, unread_count]
|
|
properties:
|
|
account_id: {type: string}
|
|
chat_id: {type: string}
|
|
buyer_id: {type: string}
|
|
buyer_name: {type: string}
|
|
buyer_avatar_url: {type: string}
|
|
item_id: {type: string}
|
|
item_title: {type: string}
|
|
last_message: {type: string}
|
|
last_message_at: {type: integer}
|
|
unread_count: {type: integer}
|
|
ChatMessage:
|
|
type: object
|
|
required: [id, account_id, chat_id, message_key, direction, sender_id, sender_name, message_type, content, status, sent_at]
|
|
properties:
|
|
id: {type: integer}
|
|
account_id: {type: string}
|
|
chat_id: {type: string}
|
|
message_key: {type: string}
|
|
direction: {type: string, enum: [incoming, outgoing]}
|
|
sender_id: {type: string}
|
|
sender_name: {type: string}
|
|
message_type: {type: string, enum: [text, image, video, system]}
|
|
content: {type: string}
|
|
status: {type: string, enum: [received, sending, sent, failed]}
|
|
read_status: {type: integer}
|
|
read_at: {type: integer}
|
|
sent_at: {type: integer}
|
|
ChatSessionPage:
|
|
type: object
|
|
required: [sessions, has_more]
|
|
properties:
|
|
sessions: {type: array, items: {$ref: '#/components/schemas/ChatSession'}}
|
|
has_more: {type: boolean}
|
|
next_cursor: {type: integer}
|
|
ChatMessagePage:
|
|
type: object
|
|
required: [messages, has_more]
|
|
properties:
|
|
messages: {type: array, items: {$ref: '#/components/schemas/ChatMessage'}}
|
|
has_more: {type: boolean}
|
|
next_cursor: {type: integer}
|
|
session: {$ref: '#/components/schemas/ChatSession'}
|
|
ChatMessageEnvelope:
|
|
type: object
|
|
required: [message]
|
|
properties:
|
|
message: {$ref: '#/components/schemas/ChatMessage'}
|
|
ChatReadyEvent:
|
|
type: object
|
|
required: [type, at]
|
|
properties:
|
|
type: {type: string, enum: [ready]}
|
|
at: {type: integer}
|
|
ChatEvent:
|
|
type: object
|
|
required: [type]
|
|
properties:
|
|
type: {type: string, enum: [message.created, message.updated]}
|
|
message: {$ref: '#/components/schemas/ChatMessage'}
|
|
session: {$ref: '#/components/schemas/ChatSession'}
|
|
ChatWebSocketEvent:
|
|
anyOf:
|
|
- $ref: '#/components/schemas/ChatReadyEvent'
|
|
- $ref: '#/components/schemas/ChatEvent'
|
|
ChatMessageRequest:
|
|
type: object
|
|
required: [account_id, chat_id, buyer_id, text]
|
|
properties:
|
|
account_id: {type: string}
|
|
chat_id: {type: string}
|
|
buyer_id: {type: string}
|
|
buyer_name: {type: string}
|
|
item_id: {type: string}
|
|
item_title: {type: string}
|
|
text: {type: string, maxLength: 2000}
|
|
ChatReadRequest:
|
|
type: object
|
|
required: [account_id, chat_id]
|
|
properties:
|
|
account_id: {type: string}
|
|
chat_id: {type: string}
|
|
message_ids: {type: array, items: {type: object, additionalProperties: {oneOf: [{type: string}, {type: number}]}}}
|
|
OrderDTO:
|
|
type: object
|
|
required: [order_id, item_id, item_title, item_image, buyer_id, spec_name, spec_value, quantity, amount, order_status, status, cookie_id, is_bargain, system_shipped, receiver_name, receiver_phone, receiver_address, receiver_city, created_at, updated_at]
|
|
properties:
|
|
order_id: {type: string}
|
|
item_id: {type: string}
|
|
item_title: {type: string}
|
|
item_image: {type: string}
|
|
buyer_id: {type: string}
|
|
spec_name: {type: string}
|
|
spec_value: {type: string}
|
|
quantity: {type: string}
|
|
amount: {type: string}
|
|
order_status: {type: string}
|
|
status: {type: string}
|
|
cookie_id: {type: string}
|
|
is_bargain: {type: integer}
|
|
system_shipped: {type: boolean}
|
|
receiver_name: {type: string}
|
|
receiver_phone: {type: string}
|
|
receiver_address: {type: string}
|
|
receiver_city: {type: string}
|
|
created_at: {type: string}
|
|
updated_at: {type: string}
|
|
OrderListResponse:
|
|
type: object
|
|
required: [success, data, total, page, page_size, total_pages]
|
|
properties:
|
|
success: {type: boolean}
|
|
data: {type: array, items: {$ref: '#/components/schemas/OrderDTO'}}
|
|
total: {type: integer}
|
|
page: {type: integer}
|
|
page_size: {type: integer}
|
|
total_pages: {type: integer}
|
|
OrderDetailResponse:
|
|
allOf:
|
|
- {$ref: '#/components/schemas/OrderDTO'}
|
|
- type: object
|
|
required: [success, data]
|
|
properties:
|
|
success: {type: boolean}
|
|
data: {$ref: '#/components/schemas/OrderDTO'}
|
|
OrderUpdateRequest:
|
|
type: object
|
|
properties:
|
|
order_status: {type: string}
|
|
status: {type: string}
|
|
item_id: {type: string}
|
|
buyer_id: {type: string}
|
|
spec_name: {type: string}
|
|
spec_value: {type: string}
|
|
quantity: {oneOf: [{type: string}, {type: number}]}
|
|
amount: {oneOf: [{type: string}, {type: number}]}
|
|
receiver_name: {type: string}
|
|
receiver_phone: {type: string}
|
|
receiver_address: {type: string}
|
|
receiver_city: {type: string}
|
|
chat_id: {type: string}
|
|
system_shipped: {type: boolean}
|
|
item_title: {type: string}
|
|
OrderRefreshDetail:
|
|
type: object
|
|
required: [quantity, spec_name, spec_value, order_status, amount]
|
|
properties:
|
|
quantity: {type: string}
|
|
spec_name: {type: string}
|
|
spec_value: {type: string}
|
|
order_status: {type: string}
|
|
amount: {type: string}
|
|
OrderSingleRefreshResponse:
|
|
type: object
|
|
required: [success, message, order]
|
|
properties:
|
|
success: {type: boolean}
|
|
message: {type: string}
|
|
order: {$ref: '#/components/schemas/OrderRefreshDetail'}
|
|
OrderRefreshResult:
|
|
type: object
|
|
required: [success]
|
|
properties:
|
|
success: {type: boolean}
|
|
cookie_id: {type: string}
|
|
stage: {type: string}
|
|
message: {type: string}
|
|
error: {type: string}
|
|
discovered: {type: integer}
|
|
updated: {type: integer}
|
|
soft_deleted: {type: boolean}
|
|
order_id: {type: string}
|
|
old_status: {type: string}
|
|
new_status: {type: string}
|
|
OrderRefreshSummary:
|
|
type: object
|
|
required: [discovered, list_updated, soft_deleted, detail_total, total, updated, no_change, failed]
|
|
properties:
|
|
discovered: {type: integer}
|
|
list_updated: {type: integer}
|
|
soft_deleted: {type: integer}
|
|
detail_total: {type: integer}
|
|
total: {type: integer}
|
|
updated: {type: integer}
|
|
no_change: {type: integer}
|
|
failed: {type: integer}
|
|
OrderRefreshResponse:
|
|
type: object
|
|
required: [partial_failure, message, summary, results]
|
|
properties:
|
|
partial_failure: {type: boolean}
|
|
message: {type: string}
|
|
summary: {$ref: '#/components/schemas/OrderRefreshSummary'}
|
|
results: {type: array, items: {$ref: '#/components/schemas/OrderRefreshResult'}}
|
|
OrderRefreshJobStartResponse:
|
|
type: object
|
|
required: [success, job_id, status]
|
|
properties:
|
|
success: {type: boolean}
|
|
job_id: {type: string}
|
|
status: {type: string, enum: [queued, running]}
|
|
OrderRefreshJobStatusResponse:
|
|
type: object
|
|
required: [success, job_id, status]
|
|
properties:
|
|
success: {type: boolean}
|
|
job_id: {type: string}
|
|
status: {type: string, enum: [queued, running, succeeded, failed, cancelled]}
|
|
error_message: {type: string}
|
|
result: {$ref: '#/components/schemas/OrderRefreshResponse'}
|
|
OrderRefreshJobCancelResponse:
|
|
type: object
|
|
required: [success, job_id, status]
|
|
properties:
|
|
success: {type: boolean}
|
|
job_id: {type: string}
|
|
status: {type: string, enum: [cancelled]}
|
|
ManualShipRequest:
|
|
type: object
|
|
required: [order_ids, ship_mode]
|
|
properties:
|
|
order_ids: {type: array, items: {type: string}}
|
|
ship_mode: {type: string, enum: [status_only, full_delivery]}
|
|
OrderBatchResult:
|
|
type: object
|
|
required: [message]
|
|
properties:
|
|
order_id: {type: string}
|
|
status: {type: string}
|
|
success: {type: boolean}
|
|
message: {type: string}
|
|
cookie_id: {type: string}
|
|
reconciliation_id: {type: string}
|
|
reconciliation_warning: {type: string}
|
|
stage: {type: string}
|
|
OrderBatchResponse:
|
|
type: object
|
|
required: [partial_failure, message, success_count, failed_count, results]
|
|
properties:
|
|
partial_failure: {type: boolean}
|
|
message: {type: string}
|
|
total: {type: integer}
|
|
success_count: {type: integer}
|
|
failed_count: {type: integer}
|
|
results: {type: array, items: {$ref: '#/components/schemas/OrderBatchResult'}}
|
|
AdminStatsResponse:
|
|
type: object
|
|
required: [total_users, total_cookies, active_cookies, total_cards, total_keywords, total_orders]
|
|
properties:
|
|
total_users: {type: integer}
|
|
total_cookies: {type: integer}
|
|
active_cookies: {type: integer}
|
|
total_cards: {type: integer}
|
|
total_keywords: {type: integer}
|
|
total_orders: {type: integer}
|
|
AdminUser:
|
|
type: object
|
|
required: [id, username, email, is_active, is_admin, created_at, cookie_count]
|
|
properties:
|
|
id: {type: integer}
|
|
username: {type: string}
|
|
email: {type: string}
|
|
is_active: {type: boolean}
|
|
is_admin: {type: boolean}
|
|
created_at: {type: string}
|
|
cookie_count: {type: integer}
|
|
AdminCookie:
|
|
type: object
|
|
required: [id, user_id, remark, created_at, owner, enabled]
|
|
properties:
|
|
id: {type: string}
|
|
user_id: {type: integer}
|
|
remark: {type: string}
|
|
created_at: {type: string}
|
|
owner: {type: string}
|
|
enabled: {type: boolean}
|
|
AdminTask:
|
|
type: object
|
|
required: [id, name, state, started_at]
|
|
properties:
|
|
id: {type: string}
|
|
name: {type: string}
|
|
state: {type: string, enum: [running, succeeded, failed, canceled, timed_out]}
|
|
started_at: {type: string, format: date-time}
|
|
finished_at: {type: string, format: date-time}
|
|
deadline_at: {type: string, format: date-time}
|
|
DashboardStatsResponse:
|
|
type: object
|
|
required: [total_cookies, active_cookies, total_cards, available_card_stock, total_keywords, total_orders]
|
|
properties:
|
|
total_cookies: {type: integer}
|
|
active_cookies: {type: integer}
|
|
total_cards: {type: integer}
|
|
available_card_stock: {type: integer}
|
|
total_keywords: {type: integer}
|
|
total_orders: {type: integer}
|
|
AnalyticsResponse:
|
|
type: object
|
|
required: [revenue_stats, daily_stats, status_stats, city_stats, item_stats]
|
|
properties:
|
|
revenue_stats: {type: object, required: [total_orders, total_amount, avg_amount, unique_buyers, unique_items], properties: {total_orders: {type: integer}, total_amount: {type: number}, avg_amount: {type: number}, unique_buyers: {type: integer}, unique_items: {type: integer}}}
|
|
daily_stats: {type: array, items: {type: object, required: [date, order_count, amount], properties: {date: {type: string}, order_count: {type: integer}, amount: {type: number}}}}
|
|
status_stats: {type: array, items: {type: object, required: [status, count, amount], properties: {status: {type: string}, count: {type: integer}, amount: {type: number}}}}
|
|
city_stats: {type: array, items: {type: object, required: [city, order_count, total_amount], properties: {city: {type: string}, order_count: {type: integer}, total_amount: {type: number}}}}
|
|
item_stats: {type: array, items: {type: object, required: [item_id, order_count, total_amount, avg_amount], properties: {item_id: {type: string}, order_count: {type: integer}, total_amount: {type: number}, avg_amount: {type: number}}}}
|
|
ValidOrdersResponse:
|
|
type: object
|
|
required: [orders, total, page, page_size, truncated]
|
|
properties:
|
|
orders: {type: array, items: {$ref: '#/components/schemas/OrderDTO'}}
|
|
total: {type: integer}
|
|
page: {type: integer}
|
|
page_size: {type: integer}
|
|
truncated: {type: boolean}
|
|
SessionStatusResponse:
|
|
type: object
|
|
required: [authenticated, initialized, is_admin]
|
|
properties:
|
|
authenticated:
|
|
type: boolean
|
|
initialized:
|
|
type: boolean
|
|
user_id:
|
|
type: integer
|
|
username:
|
|
type: string
|
|
is_admin:
|
|
type: boolean
|
|
OperationResponse:
|
|
type: object
|
|
required: [success]
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
message:
|
|
type: string
|
|
requires_relogin:
|
|
type: boolean
|
|
MessageResponse:
|
|
type: object
|
|
required: [message]
|
|
properties:
|
|
message:
|
|
type: string
|
|
QRLoginGenerateResponse:
|
|
type: object
|
|
required: [success, session_id, qr_code_url]
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
session_id:
|
|
type: string
|
|
qr_code_url:
|
|
type: string
|
|
message:
|
|
type: string
|
|
QRLoginStatusResponse:
|
|
type: object
|
|
required: [status]
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
status:
|
|
type: string
|
|
message:
|
|
type: string
|
|
verification_screenshot:
|
|
type: string
|
|
face_qr_url:
|
|
type: string
|
|
session_id:
|
|
type: string
|
|
account_id:
|
|
type: string
|
|
is_new_account:
|
|
type: boolean
|
|
QRLoginVerificationResponse:
|
|
type: object
|
|
required: [success, unb]
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
unb:
|
|
type: string
|
|
account_id:
|
|
type: string
|
|
is_new_account:
|
|
type: boolean
|
|
ErrorResponse:
|
|
type: object
|
|
required: [code, message]
|
|
properties:
|
|
code:
|
|
type: string
|
|
message:
|
|
type: string
|
|
request_id:
|
|
type: string
|
|
details:
|
|
type: object
|
|
additionalProperties: true
|