feat(exc): complete monitoring details

This commit is contained in:
2026-09-09 10:34:48 +08:00
parent 0a3378afae
commit 96baec165c
5 changed files with 52 additions and 20 deletions
+38 -20
View File
@@ -50,7 +50,7 @@ export interface paths {
content: {
"application/json": {
/**
* @example active
* @example all
* @enum {string|null}
*/
state?: "active" | "archived" | "trashed" | "all" | null;
@@ -346,7 +346,7 @@ export interface paths {
content: {
"application/json": {
/**
* @example public
* @example group_only
* @enum {string|null}
*/
visibility?: "public" | "group_only" | null;
@@ -539,7 +539,7 @@ export interface paths {
*/
language_code?: string;
/**
* @example draft
* @example published
* @enum {string}
*/
status?: "draft" | "awaiting_publish" | "published";
@@ -4371,11 +4371,11 @@ export interface paths {
/** @example architecto */
status?: string | null;
/**
* @example instant_accept
* @example quote
* @enum {string|null}
*/
dispatch_mode?: "instant_accept" | "quote" | "scheduled_booking" | "manual_selection" | null;
/** @example architecto */
/** @example null */
user_uid?: string | null;
/**
* @description Must not be greater than 100 characters.
@@ -4567,6 +4567,12 @@ export interface paths {
/** @example 广州 */
city?: string;
};
/** @example 23.1291 */
lat?: number;
/** @example 113.2644 */
lng?: number;
/** @example 90 */
duration?: number;
/** @example null */
quote_deadline?: string;
/** @example [] */
@@ -4685,13 +4691,13 @@ export interface paths {
content: {
"application/json": {
/**
* @example ignored
* @example rejected
* @enum {string|null}
*/
status?: "sent" | "delivered" | "viewed" | "accepted" | "rejected" | "ignored" | "expired" | "taken_by_other" | null;
/** @example 16 */
demand_id?: number | null;
/** @example architecto */
/** @example null */
provider_uid?: string | null;
/**
* @description Must be at least 0.
@@ -4879,7 +4885,7 @@ export interface paths {
content: {
"application/json": {
/**
* @example created
* @example fulfilled
* @enum {string|null}
*/
status?: "created" | "confirmed" | "started" | "consumed" | "paid" | "fulfilled" | "canceled" | null;
@@ -4888,18 +4894,18 @@ export interface paths {
* @enum {string|null}
*/
payment_status?: "UNPAID" | "PAID" | null;
/** @example architecto */
/** @example null */
buyer_uid?: string | null;
/** @example architecto */
/** @example null */
provider_uid?: string | null;
/**
* @description Must be at least 1.
* @example 22
* @example 16
*/
page?: number | null;
/**
* @description Must be at least 1. Must not be greater than 100.
* @example 7
* @example 22
*/
page_size?: number | null;
};
@@ -5085,6 +5091,12 @@ export interface paths {
id?: number;
/** @example paid */
status?: string;
/** @example PAY202607110001 */
pay_order_no?: string;
/** @example STRIPE */
paid_channel?: string;
/** @example null */
cancellation_fee_due_date?: string;
/** @example [] */
items?: unknown[];
/** @example [] */
@@ -5167,9 +5179,9 @@ export interface paths {
* @enum {string|null}
*/
status?: "offline" | "online" | "inactive" | "busy" | null;
/** @example false */
/** @example true */
is_disabled?: boolean | null;
/** @example false */
/** @example true */
is_verified?: boolean | null;
/**
* @description Must be at least 1.
@@ -5337,6 +5349,12 @@ export interface paths {
};
/** @example online */
status?: string;
/** @example 23.1291 */
last_lat?: number;
/** @example 113.2644 */
last_lng?: number;
/** @example 12.5 */
location_accuracy_m?: number;
dispatch_setting?: {
/** @example true */
auto_grab_enabled?: boolean;
@@ -5453,7 +5471,7 @@ export interface paths {
*/
visibility?: "public" | "friends" | "private" | null;
/**
* @example all
* @example visible
* @enum {string|null}
*/
status?: "blocked" | "visible" | "all" | null;
@@ -5779,7 +5797,7 @@ export interface paths {
content: {
"application/json": {
/**
* @example blocked
* @example all
* @enum {string|null}
*/
status?: "pending" | "blocked" | "all" | null;
@@ -7666,7 +7684,7 @@ export interface paths {
q?: string | null;
/** @example true */
status?: boolean | null;
/** @example true */
/** @example false */
is_robot?: boolean | null;
/**
* @description Must not be greater than 100 characters.
@@ -9744,7 +9762,7 @@ export interface paths {
content: {
"application/json": {
/**
* @example blocked
* @example pending
* @enum {string|null}
*/
status?: "pending" | "blocked" | "all" | null;
@@ -10107,11 +10125,11 @@ export interface paths {
content: {
"application/json": {
/**
* @example web
* @example android
* @enum {string|null}
*/
platform?: "ios" | "android" | "web" | "desktop" | null;
/** @example false */
/** @example true */
is_online?: boolean | null;
/**
* @description Must be at least 1.
+7
View File
@@ -598,6 +598,9 @@ export interface ExcDemand {
summary?: string | null
content?: string | null
address?: unknown
lat?: number | null
lng?: number | null
duration?: number | null
quote_deadline?: string | null
related_services?: Array<{ id: number; title?: string | null; category_name?: string | null }>
quotes?: Array<{
@@ -685,6 +688,7 @@ export interface ExcOrder {
buyer_remarks?: string | null
pay_order_no?: string | null
paid_channel?: string | null
cancellation_fee_due_date?: string | null
items?: Array<{
id: number
name?: string | null
@@ -722,6 +726,9 @@ export interface ExcProvider {
current_service_order_id?: number | null
created_at?: string
// detail-only
last_lat?: number | null
last_lng?: number | null
location_accuracy_m?: number | null
dispatch_setting?: {
auto_grab_enabled?: boolean
service_whitelist?: string[]
+3
View File
@@ -157,6 +157,9 @@ function ExcDemandsPage() {
{ label: '报价截止', value: formatTime(demand?.quote_deadline) },
{ label: '需求时间', value: formatTime(demand?.required_at) },
{ label: '匹配时间', value: formatTime(demand?.matched_at) },
{ label: '纬度', value: demand?.lat ?? '—' },
{ label: '经度', value: demand?.lng ?? '—' },
{ label: '时长(分钟)', value: demand?.duration ?? '—' },
]}
jsonBlocks={[
{ label: '关联服务', value: demand?.related_services?.length ? demand.related_services : null },
+1
View File
@@ -175,6 +175,7 @@ function ExcOrdersPage() {
{ label: '支付时间', value: formatTime(order?.paid_at) },
{ label: '结算时间', value: formatTime(order?.settled_at) },
{ label: '放款时间', value: formatTime(order?.escrow_released_at) },
{ label: '取消费截止', value: formatTime(order?.cancellation_fee_due_date) },
{ label: '买家备注', value: order?.buyer_remarks ?? '—' },
]}
jsonBlocks={[
+3
View File
@@ -161,6 +161,9 @@ function ExcProvidersPage() {
{ label: '上线时间', value: formatTime(provider?.online_at) },
{ label: '离线时间', value: formatTime(provider?.offline_at) },
{ label: '最近定位', value: formatTime(provider?.last_location_at) },
{ label: '纬度', value: provider?.last_lat ?? '—' },
{ label: '经度', value: provider?.last_lng ?? '—' },
{ label: '定位精度(米)', value: provider?.location_accuracy_m ?? '—' },
]}
jsonBlocks={[
{ label: '派单设置', value: provider?.dispatch_setting ?? null },